From: David Sterba Date: Thu, 30 May 2019 16:43:53 +0000 (+0200) Subject: btrfs: use file:line format for assertion report X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f8e4fd43073406aa5e2d7f27ffc45510778ac3e;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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(); } }