]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/mapper.c: fix printf format for unsigned variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 14 Mar 2014 23:06:22 +0000 (00:06 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 30 Apr 2014 20:51:43 +0000 (22:51 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/crush/mapper.c

index 22cde518f58a4948967f0a582f962328276de9e6..e610f3108ac4f6bf7d729fd609a3c75a2bcb5a28 100644 (file)
@@ -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]);
                }