当前位置: 技术问答>linux和unix
Linux系统中,DEBUG()和ERROR()这种函数有什么作用?
来源: 互联网 发布时间:2017-04-22
本文导语: 哪有它们的具体描述。 | 不知道LZ是在哪里看到的,用man查的话,只查的error函数,没有debug。 如果LZ看到是大写的函数,估计不是系统函数,在对应代码里面好好找函数体吧。 下面是error函...
哪有它们的具体描述。
|
不知道LZ是在哪里看到的,用man查的话,只查的error函数,没有debug。
如果LZ看到是大写的函数,估计不是系统函数,在对应代码里面好好找函数体吧。
下面是error函数man的结果:
其实就是一个把错误号和错误详细信息打印出来的函数
如果LZ看到是大写的函数,估计不是系统函数,在对应代码里面好好找函数体吧。
下面是error函数man的结果:
#include
void error(int status, int errnum, const char *format, ...);
error() is a general error reporting function. It flushes stdout, and then outputs to stderr the program name,
a colon and a space, the message specified by the printf(3)-style format string format, and, if errnum is non-
zero, a second colon and a space followed by the string given by perror(errnum). Any arguments required for
format should follow format in the argument list. The output is terminated by a newline character.
其实就是一个把错误号和错误详细信息打印出来的函数
|
你说的是内核吗?
那个开发的时候调试用的。
那个开发的时候调试用的。