- 论坛徽章:
- 0
|
可以进一步参考一下man 9 printf :
The printf(9) family of functions are similar to the printf(3) family of
functions. The different functions each use a different output stream.
The uprintf() function outputs to the current process' controlling tty,
while printf() writes to the console as well as to the logging facility.
The tprintf() function outputs to the tty associated with the process p
and the logging facility if pri is not -1. The log() function sends the
message to the kernel logging facility, using the log level as indicated
by pri. |
|