xfs_message.c (e1d3d218854659139731a61cf41aa391dcf949b0) | xfs_message.c (9842b56cd406828eb1030617e8ef252fec90be4d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011 Red Hat, Inc. All Rights Reserved. 4 */ 5 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_error.h" --- 72 unchanged lines hidden (view full) --- 81 82 __xfs_printk(KERN_ALERT, mp, &vaf); 83 va_end(args); 84 85 BUG_ON(do_panic); 86} 87 88void | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011 Red Hat, Inc. All Rights Reserved. 4 */ 5 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_error.h" --- 72 unchanged lines hidden (view full) --- 81 82 __xfs_printk(KERN_ALERT, mp, &vaf); 83 va_end(args); 84 85 BUG_ON(do_panic); 86} 87 88void |
89asswarn(char *expr, char *file, int line) | 89asswarn( 90 struct xfs_mount *mp, 91 char *expr, 92 char *file, 93 int line) |
90{ | 94{ |
91 xfs_warn(NULL, "Assertion failed: %s, file: %s, line: %d", | 95 xfs_warn(mp, "Assertion failed: %s, file: %s, line: %d", |
92 expr, file, line); 93 WARN_ON(1); 94} 95 96void | 96 expr, file, line); 97 WARN_ON(1); 98} 99 100void |
97assfail(char *expr, char *file, int line) | 101assfail( 102 struct xfs_mount *mp, 103 char *expr, 104 char *file, 105 int line) |
98{ | 106{ |
99 xfs_emerg(NULL, "Assertion failed: %s, file: %s, line: %d", | 107 xfs_emerg(mp, "Assertion failed: %s, file: %s, line: %d", |
100 expr, file, line); 101 if (xfs_globals.bug_on_assert) 102 BUG(); 103 else 104 WARN_ON(1); 105} 106 107void 108xfs_hex_dump(const void *p, int length) 109{ 110 print_hex_dump(KERN_ALERT, "", DUMP_PREFIX_OFFSET, 16, 1, p, length, 1); 111} | 108 expr, file, line); 109 if (xfs_globals.bug_on_assert) 110 BUG(); 111 else 112 WARN_ON(1); 113} 114 115void 116xfs_hex_dump(const void *p, int length) 117{ 118 print_hex_dump(KERN_ALERT, "", DUMP_PREFIX_OFFSET, 16, 1, p, length, 1); 119} |