From: David Sterba Date: Thu, 30 May 2019 16:43:53 +0000 (+0200) Subject: btrfs: use file:line format for assertion report X-Git-Tag: v5.3-rc1~67^2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f8e4fd43073406aa5e2d7f27ffc45510778ac3e;p=thirdparty%2Fkernel%2Flinux.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 2e908c557fb25..fb74355334781 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(); } }