search for: mesg2

Displaying 1 result from an estimated 1 matches for "mesg2".

Did you mean: mesg
1997 Feb 18
0
Abuse of the syslog facility
...a good one that can put misleading information in the logs. ------------------------------- #include <syslog.h> void main(void){ const char *mesg1 = "hda: read_intr: status=0x59 { SeekComplete DataRequest Error } { UncorrectableError }, CHS=157/2/9, sector=2826\0"; const char *mesg2 ="end_request: I/O error, dev 03:00, sector 2826\0"; const char *mesg3 = "EXT2-fs: group descriptors corrupted !\0"; openlog("kernel", LOG_CONS, LOG_KERN); syslog(LOG_ERR, mesg1); syslog(LOG_ERR, mesg2); syslog(LOG_ERR, mesg3); closelog(); } --------------------...