2 * Source file for kernel interface to kernel log facility
4 * Copyright (C) Eicon Technology Corporation, 2000.
6 * Eicon File Revision : 1.3
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
21 void DivasPrintf(char *fmt, ...)
24 klog_t log; /* log entry buffer */
26 va_list argptr; /* pointer to additional args */
28 va_start(argptr, fmt);
32 memset((void *) &log, 0, sizeof(klog_t));
35 log.type = KLOG_TEXT_MSG;
37 /* time stamp the entry */
39 log.time_stamp = UxTimeGet();
41 /* call vsprintf to format the user's information */
43 vsnprintf(log.buffer, DIM(log.buffer), fmt, argptr);
47 /* send to the log streams driver and return */
49 DivasLogAdd(&log, sizeof(klog_t));