Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
 
22
/*
23
 * Copyright (C) 2000 Massimiliano Giorgi
24
 *
25
 * This program is free software; you can redistribute it and/or modify
26
 * it under the terms of the GNU General Public License as published by
27
 * the Free Software Foundation; either version 2 of the License, or
28
 * (at your option) any later version.
29
 *
30
 * This program is distributed in the hope that it will be useful,
31
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33
 * GNU General Public License for more details.
34
 *
35
 * You should have received a copy of the GNU General Public License
36
 * along with this program; if not, write to the Free Software
37
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
38
 *
39
 */
40
 
41
/*
42
 * CVS :        $Id: log.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
43
 *
44
 * File:        log.h
45
 * Revision:    $Revision: 1.1.1.1 $
46
 * Last update: $Date: 2002-03-29 14:12:51 $
47
 */
48
 
49
#ifndef __KERNEL_LOG_H
50
#define __KERNEL_LOG_H
51
 
52
/*+
53
  The following values are used for the first parameter
54
  of the printk() and printkboot() functions.
55
 
56
    system is unusable                  +*/
57
#define KERN_EMERG      "<0>"   
58
/*+ action must be taken immediately    +*/
59
#define KERN_ALERT      "<1>"   
60
/*+ critical conditions                 +*/
61
#define KERN_CRIT       "<2>"   
62
/*+ error conditions                    +*/
63
#define KERN_ERR        "<3>"   
64
/*+ warning conditions                  +*/
65
#define KERN_WARNING    "<4>"
66
/*+ normal but significant condition    +*/    
67
#define KERN_NOTICE     "<5>"
68
/*+ informational                       +*/
69
#define KERN_INFO       "<6>"   
70
/*+ debug-level messages                +*/
71
#define KERN_DEBUG      "<7>"   
72
 
73
#define LOG_EMERG   0
74
#define LOG_ALERT   1
75
#define LOG_CRIT    2
76
#define LOG_ERR     3
77
#define LOG_WARNING 4
78
#define LOG_NOTICE  5
79
#define LOG_INFO    6
80
#define LOG_DEBUG   7
81
 
82
extern void setprintklevel(int level);
83
 
84
extern int printk(const char * fmt, ...)
85
     __attribute__ ((format (printf, 1, 2)));
86
extern int printkboot(const char * fmt, ...)
87
     __attribute__ ((format (printf, 1, 2)));
88
 
89
#endif     
90
 
91