Commit 6f8e4fd4 authored by David Sterba's avatar David Sterba

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: default avatarDavid Sterba <dsterba@suse.com>
parent ea41d6b2
......@@ -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();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment