diff options
author | David Sterba <dsterba@suse.com> | 2025-06-20 18:06:45 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-07-21 23:58:04 +0200 |
commit | 44cac5234104bb25e57dc75b8d5e6c5c26c384fb (patch) | |
tree | 5f0a30001cda3a053e8e3b97aabaee5b70a9e208 /fs/btrfs/print-tree.c | |
parent | 27260dd1904bb409cf84709928ba9bc5506fbe8e (diff) |
btrfs: use our message helpers instead of pr_err/pr_warn/pr_info
Our message helpers accept NULL for the fs_info in the context that does
not provide and print the common header of the message. The use of pr_*
helpers is only for special reasons, like module loading, device
scanning or multi-line output (print-tree).
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 21605b03f511..74e38da9bd39 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -190,7 +190,7 @@ static void print_uuid_item(const struct extent_buffer *l, unsigned long offset, u32 item_size) { if (!IS_ALIGNED(item_size, sizeof(u64))) { - pr_warn("BTRFS: uuid item with illegal size %lu!\n", + btrfs_warn(l->fs_info, "uuid item with illegal size %lu", (unsigned long)item_size); return; } |