Changeset 707 for trunk/archive/pslib/src/Utils/logmsg.c
- Timestamp:
- May 17, 2004, 7:53:16 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/logmsg.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/logmsg.c
r686 r707 20 20 * Set the current log level and return old level 21 21 */ 22 int ps SetLogLevel(int level) // new level22 int psLogSetLevel(int level) // new level 23 23 { 24 24 int oldLevel = logLevel; … … 37 37 /*****************************************************************************/ 38 38 39 int ps SetLogDestination(int dest) // new destination39 int psLogSetDestination(int dest) // new destination 40 40 { 41 41 int old = logDest; … … 65 65 static int log_time = 1, log_host = 1, log_level = 1, log_name = 1, log_msg = 1; 66 66 67 void ps SetLogFormat(const char *fmt)67 void psLogSetFormat(const char *fmt) 68 68 { 69 69 int nlog_time, nlog_host, nlog_level, nlog_name, nlog_msg; // new values of log_time etc. 70 70 71 nlog_host = nlog_level = nlog_msg = nlog_name = nlog_time = 0; // don 't log anything71 nlog_host = nlog_level = nlog_msg = nlog_name = nlog_time = 0; // don\'t log anything 72 72 for (const char *ptr = fmt; *ptr != '\0'; ptr++) { 73 73 switch (*ptr) { … … 110 110 #endif 111 111 112 void p_ps VLogMsg(const char *name, int level, const char *fmt, va_list ap)112 void p_psLogVMsg(const char *name, int level, const char *fmt, va_list ap) 113 113 { 114 114 static int first = 1; … … 159 159 160 160 char head[HOST_NAME_MAX + 40]; // yes, this is long enough 161 char *head_ptr = head; // where we 've got to in head161 char *head_ptr = head; // where we\'ve got to in head 162 162 time_t clock = time(NULL); 163 163 struct tm *utc = gmtime(&clock); … … 224 224 va_start(ap, fmt); 225 225 226 p_ps VLogMsg(name, level, fmt, ap);226 p_psLogVMsg(name, level, fmt, ap); 227 227 va_end(ap); 228 228 }
Note:
See TracChangeset
for help on using the changeset viewer.
