From c556300df556a44f9b7a94261c2de2e19defde24 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 27 Sep 2023 10:35:05 +0200 Subject: [PATCH] global: rerun clang-format --- src/iface/service-link.c | 2 +- src/resource/ubridge.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/iface/service-link.c b/src/iface/service-link.c index c1627a0f..4109ce67 100644 --- a/src/iface/service-link.c +++ b/src/iface/service-link.c @@ -146,7 +146,7 @@ static const char *_get_arg_value(const char *str, const char *key_eq, size_t *s if (!strncmp(key_eq, str, strlen(key_eq))) { /* get the value and its size */ str += strlen(key_eq); - *size = line_end - str; + *size = line_end - str; return str; } } diff --git a/src/resource/ubridge.c b/src/resource/ubridge.c index 276ca46b..de71471f 100644 --- a/src/resource/ubridge.c +++ b/src/resource/ubridge.c @@ -3670,10 +3670,10 @@ static int _refresh_device_disk_hierarchy_from_sysfs(sid_resource_t *cmd_res) if (!(vec_buf = sid_buffer_create(&((struct sid_buffer_spec) {.backend = SID_BUFFER_BACKEND_MALLOC, .type = SID_BUFFER_TYPE_VECTOR, .mode = SID_BUFFER_MODE_PLAIN}), - &((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0), + &((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0), .alloc_step = 1, .limit = 0}), - &r))) { + &r))) { log_error_errno(ID(cmd_res), r, "Failed to create buffer to record hierarchy for device " CMD_DEV_NAME_NUM_FMT,