btrfs: use file:line format for assertion report
David Sterba
maintainerPATCH 1/1 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 <[email protected]>
--- fs/btrfs/ctree.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/ctree.h +1 -2
@@ -3527,8 +3527,7 @@ __coldstatic 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 (); } }
Signature · 1 line
2.21.0