From a84fed6101351378a0fbf06c62cb3e4556ae1e85 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 15 Mar 2014 00:06:22 +0100 Subject: [PATCH] crush/mapper.c: fix printf format for unsigned variable Signed-off-by: Danny Al-Gaaf --- src/crush/mapper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crush/mapper.c b/src/crush/mapper.c index 22cde518f58a4..e610f3108ac4f 100644 --- a/src/crush/mapper.c +++ b/src/crush/mapper.c @@ -512,12 +512,12 @@ static void crush_choose_indep(const struct crush_map *map, for (ftotal = 0; left > 0 && ftotal < tries; ftotal++) { #ifdef DEBUG_INDEP if (out2 && ftotal) { - printf("%d %d a: ", ftotal, left); + printf("%u %d a: ", ftotal, left); for (rep = outpos; rep < endpos; rep++) { printf(" %d", out[rep]); } printf("\n"); - printf("%d %d b: ", ftotal, left); + printf("%u %d b: ", ftotal, left); for (rep = outpos; rep < endpos; rep++) { printf(" %d", out2[rep]); } @@ -642,12 +642,12 @@ static void crush_choose_indep(const struct crush_map *map, } #ifdef DEBUG_INDEP if (out2) { - printf("%d %d a: ", ftotal, left); + printf("%u %d a: ", ftotal, left); for (rep = outpos; rep < endpos; rep++) { printf(" %d", out[rep]); } printf("\n"); - printf("%d %d b: ", ftotal, left); + printf("%u %d b: ", ftotal, left); for (rep = outpos; rep < endpos; rep++) { printf(" %d", out2[rep]); } -- 2.39.5