From: Danny Al-Gaaf Date: Fri, 14 Mar 2014 23:06:22 +0000 (+0100) Subject: crush/mapper.c: fix printf format for unsigned variable X-Git-Tag: v0.81~76^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a84fed6101351378a0fbf06c62cb3e4556ae1e85;p=ceph.git crush/mapper.c: fix printf format for unsigned variable Signed-off-by: Danny Al-Gaaf --- 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]); }