diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-09-20 10:05:02 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-26 13:37:04 -0400 |
commit | ab8d0fc48dba09e0a2b8b0dbfe144d4de9eb874f (patch) | |
tree | e6ac2c4d2f3d81a0d7b3b398db3fb48f2ed1630c /fs/btrfs/ctree.h | |
parent | 62e855771dacf7c4d6daf9741642a965e7066d31 (diff) |
btrfs: convert pr_* to btrfs_* where possible
For many printks, we want to know which file system issued the message.
This patch converts most pr_* calls to use the btrfs_* versions instead.
In some cases, this means adding plumbing to allow call sites access to
an fs_info pointer.
fs/btrfs/check-integrity.c is left alone for another day.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8937f3f8780a..9e8fd5ecef55 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3395,7 +3395,7 @@ do { \ | |||
3395 | __cold | 3395 | __cold |
3396 | static inline void assfail(char *expr, char *file, int line) | 3396 | static inline void assfail(char *expr, char *file, int line) |
3397 | { | 3397 | { |
3398 | pr_err("BTRFS: assertion failed: %s, file: %s, line: %d", | 3398 | pr_err("assertion failed: %s, file: %s, line: %d\n", |
3399 | expr, file, line); | 3399 | expr, file, line); |
3400 | BUG(); | 3400 | BUG(); |
3401 | } | 3401 | } |