From ac41deeeac00987ad9644bdf130862d4d04443a4 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 25 Sep 2023 16:13:53 +0100 Subject: [PATCH] Rename _stats_set_aux() argument The aux_data argument of _stats_set_aux() is the user-defined data to be stored with the stats region. Rename the argument to better reflect this. --- libdm/libdm-stats.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index dc2907f4e..bb7931a56 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -1882,7 +1882,7 @@ bad: * generated from the current group table and included in the message. */ static int _stats_set_aux(struct dm_stats *dms, - uint64_t region_id, const char *aux_data) + uint64_t region_id, const char *user_data) { const char *group_tag = NULL; struct dm_task *dmt = NULL; @@ -1897,11 +1897,10 @@ static int _stats_set_aux(struct dm_stats *dms, goto bad; } } - if (dm_snprintf(msg, sizeof(msg), "@stats_set_aux " FMTu64 " %s%s%s ", region_id, (group_tag) ? group_tag : "", (group_tag) ? DMS_AUX_SEP : "", - (strlen(aux_data)) ? aux_data : "-") < 0) { + (strlen(user_data)) ? user_data : "-") < 0) { log_error("Could not prepare @stats_set_aux message"); goto bad; }