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