Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3433301
  • 博文数量: 754
  • 博客积分: 10132
  • 博客等级: 上将
  • 技术积分: 7780
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-14 23:36
文章分类

全部博文(754)

文章存档

2012年(3)

2011年(39)

2010年(66)

2009年(167)

2008年(479)

我的朋友

分类: LINUX

2009-02-20 10:23:56

Linux设备驱动第三版第三章:
 
There are eight possible loglevel strings, defined in the header ; we list them in order of decreasing severity:

KERN_EMERG
Used for emergency messages, usually those that precede a crash.

KERN_ALERT
A situation requiring immediate action.

KERN_CRIT
Critical conditions, often related to serious hardware or software failures.

KERN_ERR
Used to report error conditions; device drivers often use KERN_ERR to report hardware difficulties.

KERN_WARNING
Warnings about problematic situations that do not, in themselves, create serious
problems with the system.

KERN_NOTICE
Situations that are normal, but still worthy of note. A number of security-related
conditions are reported at this level.

KERN_INFO
Informational messages. Many drivers print information about the hardware
they find at startup time at this level.

KERN_DEBUG
Used for debugging messages.

Each string (in the macro expansion) represents an integer in angle brackets. Integers range from 0 to 7, with smaller values representing higher priorities.
阅读(667) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~