summaryrefslogtreecommitdiff
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-02 09:08:46 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:55 +0300
commitb1cfe5ed2b5d5dbd2d8bcb2a4c1131513a1b3e1c (patch)
treed4f2398d3b830e19c34f5c11511f38718ee1e40a /fs/bcachefs/util.h
parentc85d7796090741fe6a75f953afae964344066448 (diff)
downloadlinux-b1cfe5ed2b5d5dbd2d8bcb2a4c1131513a1b3e1c.tar.xz
bcachefs: Improve dev_alloc_debug_to_text()
Now we also print the number of buckets reserved for each watermark. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index 4188f380f54f..44c6a2a10f35 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -236,7 +236,7 @@ do { \
#define prt_tab_rjust(_out) bch2_prt_tab_rjust(_out)
#define prt_bytes_indented(...) bch2_prt_bytes_indented(__VA_ARGS__)
-#define prt_u64(_out, _v) prt_printf(_out, "%llu", _v)
+#define prt_u64(_out, _v) prt_printf(_out, "%llu", (u64) (_v))
#define prt_human_readable_u64(...) bch2_prt_human_readable_u64(__VA_ARGS__)
#define prt_human_readable_s64(...) bch2_prt_human_readable_s64(__VA_ARGS__)
#define prt_units_u64(...) bch2_prt_units_u64(__VA_ARGS__)