Displaying 1 result from an estimated 1 matches for "closelog_r".
Did you mean:
closelog
2016 Mar 28
2
Is it possible to extend log message?
...defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)
openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sd
- syslog_r(pri, &sdata, "%.500s", fmtbuf);
+ syslog_r(pri, &sdata, "%s", fmtbuf);
closelog_r(&sdata);
#else
openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility);
- syslog(pri, "%.500s", fmtbuf);
+ syslog(pri, "%s", fmtbuf);
closelog();
#endif
}
Thanks
nakai