From c0f86d66f3f6b561528e7f856f9926bec766c036 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 29 Aug 2022 13:07:11 +0200 Subject: tree-wide: Use correct format specifiers gcc will complain about all these with -Wformat-signedness. --- src/shared/cpu-set-util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shared/cpu-set-util.c') diff --git a/src/shared/cpu-set-util.c b/src/shared/cpu-set-util.c index e3e69635a6..7edb673d97 100644 --- a/src/shared/cpu-set-util.c +++ b/src/shared/cpu-set-util.c @@ -62,9 +62,9 @@ char *cpu_set_to_range_string(const CPUSet *set) { return NULL; if (range_end > range_start) - r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end); + r = sprintf(str + len, len > 0 ? " %u-%u" : "%u-%u", range_start, range_end); else - r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start); + r = sprintf(str + len, len > 0 ? " %u" : "%u", range_start); assert_se(r > 0); len += r; } @@ -74,9 +74,9 @@ char *cpu_set_to_range_string(const CPUSet *set) { return NULL; if (range_end > range_start) - r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end); + r = sprintf(str + len, len > 0 ? " %u-%u" : "%u-%u", range_start, range_end); else - r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start); + r = sprintf(str + len, len > 0 ? " %u" : "%u", range_start); assert_se(r > 0); } -- cgit v1.2.3