7 static char *rcsid_log_c = "$Header$";
11 * handle logging for dcm and update server
13 * this should eventually use zephyr
17 * define syslog for using syslog,
44 sms_update_com_err_hook(whoami, code, fmt, args)
50 char buf[BUFSIZ], *cp;
55 for (cp = buf; *cp; cp++)
64 strcpy(cp, error_message(code));
68 _strbuf._flag = _IOWRT+_IOSTRG;
70 _strbuf._cnt = BUFSIZ-(cp-buf);
71 _doprnt(fmt, args, &_strbuf);
74 syslog(syslog_prio[log_priority], "%s", buf);
81 sms_update_initialize()
83 static int initialized = 0;
87 openlog(whoami, LOG_PID, LOG_DAEMON);
89 (void) set_com_err_hook(sms_update_com_err_hook);
90 log_priority = log_INFO;