IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2004, 7:53:16 AM (22 years ago)
Author:
rhl
Message:

Updated to match APIs in include/*.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/logmsg.c

    r686 r707  
    2020 * Set the current log level and return old level
    2121 */
    22 int psSetLogLevel(int level)            // new level
     22int psLogSetLevel(int level)            // new level
    2323{
    2424    int oldLevel = logLevel;
     
    3737/*****************************************************************************/
    3838
    39 int psSetLogDestination(int dest)       // new destination
     39int psLogSetDestination(int dest)       // new destination
    4040{
    4141    int old = logDest;
     
    6565static int log_time = 1, log_host = 1, log_level = 1, log_name = 1, log_msg = 1;
    6666
    67 void psSetLogFormat(const char *fmt)
     67void psLogSetFormat(const char *fmt)
    6868{
    6969    int nlog_time, nlog_host, nlog_level, nlog_name, nlog_msg; // new values of log_time etc.
    7070
    71     nlog_host = nlog_level = nlog_msg = nlog_name = nlog_time = 0; // don't log anything
     71    nlog_host = nlog_level = nlog_msg = nlog_name = nlog_time = 0; // don\'t log anything
    7272    for (const char *ptr = fmt; *ptr != '\0'; ptr++) {
    7373        switch (*ptr) {
     
    110110#endif
    111111
    112 void p_psVLogMsg(const char *name, int level, const char *fmt, va_list ap)
     112void p_psLogVMsg(const char *name, int level, const char *fmt, va_list ap)
    113113{
    114114    static int first = 1;
     
    159159
    160160    char head[HOST_NAME_MAX + 40];      // yes, this is long enough
    161     char *head_ptr = head;              // where we've got to in head
     161    char *head_ptr = head;              // where we\'ve got to in head
    162162    time_t clock = time(NULL);
    163163    struct tm *utc = gmtime(&clock);
     
    224224    va_start(ap, fmt);
    225225
    226     p_psVLogMsg(name, level, fmt, ap);
     226    p_psLogVMsg(name, level, fmt, ap);
    227227    va_end(ap);
    228228}
Note: See TracChangeset for help on using the changeset viewer.