blob: f1380f7c78737910245cdebd30d89ca5fc5ab677 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (c) 2001 Silicon Graphics, Inc. All rights reserved.
*/
#ifndef _ASM_IA64_SN_NAG_H
#define _ASM_IA64_SN_NAG_H
#define NAG(mesg...) \
do { \
static unsigned int how_broken = 1; \
static unsigned int threshold = 1; \
if (how_broken == threshold) { \
if (threshold < 10000) \
threshold *= 10; \
if (how_broken > 1) \
printk(KERN_WARNING "%u times: ", how_broken); \
else \
printk(KERN_WARNING); \
printk(mesg); \
} \
how_broken++; \
} while (0)
#endif /* _ASM_IA64_SN_NAG_H */
|