Skip to content

Commit bd180b4

Browse files
geertutorvalds
authored andcommitted
drivers/md/bcache/extents.c: use %zi to format size_t
drivers/md/bcache/extents.c: In function `btree_ptr_bad_expensive': drivers/md/bcache/extents.c:196: warning: format `%li' expects type `long int', but argument 4 has type `size_t' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Kent Overstreet <kmo@daterainc.com> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 38dfac8 commit bd180b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/bcache/extents.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static bool btree_ptr_bad_expensive(struct btree *b, const struct bkey *k)
194194
mutex_unlock(&b->c->bucket_lock);
195195
bch_extent_to_text(buf, sizeof(buf), k);
196196
btree_bug(b,
197-
"inconsistent btree pointer %s: bucket %li pin %i prio %i gen %i last_gc %i mark %llu gc_gen %i",
197+
"inconsistent btree pointer %s: bucket %zi pin %i prio %i gen %i last_gc %i mark %llu gc_gen %i",
198198
buf, PTR_BUCKET_NR(b->c, k, i), atomic_read(&g->pin),
199199
g->prio, g->gen, g->last_gc, GC_MARK(g), g->gc_gen);
200200
return true;

0 commit comments

Comments
 (0)