Skip to content

Commit 17b1872

Browse files
bjdooks-ctkawasaki
authored andcommitted
block: fix type for printf argument
When making the block-%d id, the type should be %u. Fixes: block/bio.c:92:62: warning: incorrect type in argument 4 (different types) block/bio.c:92:62: expected int block/bio.c:92:62: got unsigned int size Signed-off-by: Ben Dooks <[email protected]>
1 parent f962a4d commit 17b1872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/bio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static struct bio_slab *create_bio_slab(unsigned int size)
8989
if (!bslab)
9090
return NULL;
9191

92-
snprintf(bslab->name, sizeof(bslab->name), "bio-%d", size);
92+
snprintf(bslab->name, sizeof(bslab->name), "bio-%u", size);
9393
bslab->slab = kmem_cache_create(bslab->name, size,
9494
ARCH_KMALLOC_MINALIGN,
9595
SLAB_HWCACHE_ALIGN | SLAB_TYPESAFE_BY_RCU, NULL);

0 commit comments

Comments
 (0)