OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [sn/] [nag.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.