xfs_message.c (c95baf12f5077419db01313ab61c2aac007d40cd) | xfs_message.c (f9bccfcc3b59b9aba64791ab3a2bfefe681ab75b) |
---|---|
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" --- 103 unchanged lines hidden (view full) --- 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} | 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" --- 103 unchanged lines hidden (view full) --- 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} |
120 121void 122xfs_buf_alert_ratelimited( 123 struct xfs_buf *bp, 124 const char *rlmsg, 125 const char *fmt, 126 ...) 127{ 128 struct xfs_mount *mp = bp->b_mount; 129 struct va_format vaf; 130 va_list args; 131 132 /* use the more aggressive per-target rate limit for buffers */ 133 if (!___ratelimit(&bp->b_target->bt_ioerror_rl, rlmsg)) 134 return; 135 136 va_start(args, fmt); 137 vaf.fmt = fmt; 138 vaf.va = &args; 139 __xfs_printk(KERN_ALERT, mp, &vaf); 140 va_end(args); 141} |
|