diff options
author | David Sterba <dsterba@suse.com> | 2025-06-20 19:06:45 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-07-22 00:58:04 +0300 |
commit | 44cac5234104bb25e57dc75b8d5e6c5c26c384fb (patch) | |
tree | 5f0a30001cda3a053e8e3b97aabaee5b70a9e208 /fs/btrfs/disk-io.c | |
parent | 27260dd1904bb409cf84709928ba9bc5506fbe8e (diff) | |
download | linux-44cac5234104bb25e57dc75b8d5e6c5c26c384fb.tar.xz |
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ee3cdd7035cc..6ac5be02dce7 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3993,7 +3993,7 @@ int btrfs_get_num_tolerated_disk_barrier_failures(u64 flags) } if (min_tolerated == INT_MAX) { - pr_warn("BTRFS: unknown raid flag: %llu", flags); + btrfs_warn(NULL, "unknown raid flag: %llu", flags); min_tolerated = 0; } |