aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_message.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_message.c')
-rw-r--r--fs/xfs/xfs_message.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_message.c b/fs/xfs/xfs_message.c
index 331cd9f83a7f..9163dc140532 100644
--- a/fs/xfs/xfs_message.c
+++ b/fs/xfs/xfs_message.c
@@ -93,6 +93,14 @@ xfs_alert_tag(
93} 93}
94 94
95void 95void
96asswarn(char *expr, char *file, int line)
97{
98 xfs_warn(NULL, "Assertion failed: %s, file: %s, line: %d",
99 expr, file, line);
100 WARN_ON(1);
101}
102
103void
96assfail(char *expr, char *file, int line) 104assfail(char *expr, char *file, int line)
97{ 105{
98 xfs_emerg(NULL, "Assertion failed: %s, file: %s, line: %d", 106 xfs_emerg(NULL, "Assertion failed: %s, file: %s, line: %d",