tsuibin
2014-03-21 16:44:27 +08:00
要是不能配置 就只能从源码下手了
dhcp-4.2.6/omapip/errwarn.c
128 /* Log a note... */
129
130 int log_info (const char *fmt, ...)
131 {
132 va_list list;
133
134 do_percentm (fbuf, fmt);
135
136 /* %Audit% This is log output. %2004.06.17,Safe%
137 * If we truncate we hope the user can get a hint from the log.
138 */
139 va_start (list, fmt);
140 vsnprintf (mbuf, sizeof mbuf, fbuf, list);
141 va_end (list);
142
143 #ifndef DEBUG
144 syslog (log_priority | LOG_INFO, "%s", mbuf);
145 #endif
146
147 if (log_perror) {
148 IGNORE_RET (write (STDERR_FILENO, mbuf, strlen (mbuf)));
149 IGNORE_RET (write (STDERR_FILENO, "\n", 1));
150 }
151
152 return 0;
153 }