10023 loader: command_bcache is using %d with unsigned data
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
diff --git a/usr/src/boot/sys/boot/common/bcache.c b/usr/src/boot/sys/boot/common/bcache.c
index ec401e7..e5a2378 100644
--- a/usr/src/boot/sys/boot/common/bcache.c
+++ b/usr/src/boot/sys/boot/common/bcache.c
@@ -475,12 +475,12 @@
return(CMD_ERROR);
}
- printf("\ncache blocks: %d\n", bcache_total_nblks);
- printf("cache blocksz: %d\n", bcache_blksize);
- printf("cache readahead: %d\n", bcache_rablks);
- printf("unit cache blocks: %d\n", bcache_unit_nblks);
- printf("cached units: %d\n", bcache_units);
- printf("%d ops %d bypasses %d hits %d misses\n", bcache_ops,
+ printf("\ncache blocks: %u\n", bcache_total_nblks);
+ printf("cache blocksz: %u\n", bcache_blksize);
+ printf("cache readahead: %u\n", bcache_rablks);
+ printf("unit cache blocks: %u\n", bcache_unit_nblks);
+ printf("cached units: %u\n", bcache_units);
+ printf("%u ops %u bypasses %u hits %u misses\n", bcache_ops,
bcache_bypasses, bcache_hits, bcache_misses);
return(CMD_OK);
}