diff options
author | David Sterba <dsterba@suse.com> | 2019-05-30 18:43:53 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 13:35:02 +0200 |
commit | 6f8e4fd43073406aa5e2d7f27ffc45510778ac3e (patch) | |
tree | 4353e56ec73f6bcb1be62cdfa0b8822942877266 /fs/btrfs/ctree.h | |
parent | btrfs: remove assumption about csum type form btrfs_print_data_csum_error() (diff) | |
download | linux-6f8e4fd43073406aa5e2d7f27ffc45510778ac3e.tar.xz linux-6f8e4fd43073406aa5e2d7f27ffc45510778ac3e.zip |
btrfs: use file:line format for assertion report
The filename:line format is commonly understood by editors and can be
copy&pasted more easily than the current format.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 2e908c557fb2..fb7435533478 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3536,8 +3536,7 @@ __cold static inline void assfail(const char *expr, const char *file, int line) { if (IS_ENABLED(CONFIG_BTRFS_ASSERT)) { - pr_err("assertion failed: %s, file: %s, line: %d\n", - expr, file, line); + pr_err("assertion failed: %s, in %s:%d\n", expr, file, line); BUG(); } } |