From 6f8e4fd43073406aa5e2d7f27ffc45510778ac3e Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 30 May 2019 18:43:53 +0200 Subject: [PATCH] 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 --- fs/btrfs/ctree.h | 3 +-- 1 file changed, 1 insertion(+), 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(); } } -- 2.30.2