IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 497


Ignore:
Timestamp:
Apr 21, 2004, 11:14:41 AM (22 years ago)
Author:
gusciora
Message:

Changed p_psVLogMsg() to psVLogMsg().

Location:
trunk/psLib/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.c

    r496 r497  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *   
    12  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-04-21 21:07:30 $
     12 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-04-21 21:14:41 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6565
    6666    // Call logging function with PS_LOG_ERROR level
    67     p_psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);
     67    psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);
    6868
    6969    // Clean up stack after variable argument has been used
  • trunk/psLib/src/sys/psLogMsg.c

    r494 r497  
    2121static int logLevel = PS_LOG_INFO; // log all messages at this or above
    2222/*****************************************************************************
    23     psSetLogLevel(): Set the current log level and return old level.
    24     Input:
     23psSetLogLevel(): Set the current log level and return old level.
     24Input:
    2525 level (int): the new log level.
    26     Output:
     26Output:
    2727 none
    28     Return:
     28Return:
    2929 The old log level.
    3030 *****************************************************************************/
     
    4646
    4747/*****************************************************************************
    48     psSetLogDestination(): sets the destination where log messages will be
     48psSetLogDestination(): sets the destination where log messages will be
    4949 sent to.
    50     Input:
     50Input:
    5151 dest (int): the new log destination
    52     Output:
     52Output:
    5353 None.
    54     Return:
     54Return:
    5555 An integer specifying the old log destination.
    5656 *****************************************************************************/
     
    131131            // GUS: figure out the psError() format:
    132132            //     psError(__func__, PS_ERR_UNKNOWN, 1,
    133             //                   "Unknown logging keyword %c", *ptr);
     133            //            "Unknown logging keyword %c", *ptr);
    134134            break;
    135135        }
     
    154154#endif
    155155/*****************************************************************************
    156     p_psVLogMsg(): This routine sends the message, which is a printf style
     156    psVLogMsg(): This routine sends the message, which is a printf style
    157157 string specified in the "..." argument, to the current message log
    158158 destination with the severity specified by the "level" argument.
     
    161161 level
    162162 fmt
    163  app_psVLogMsg
     163 ap
    164164    Output:
    165165 none
     
    167167 NULL.
    168168 *****************************************************************************/
    169 void p_psVLogMsg(const char *name,
    170                  int level,
    171                  const char *fmt,
    172                  va_list ap)
     169void psVLogMsg(const char *name,
     170               int level,
     171               const char *fmt,
     172               va_list ap)
    173173{
    174174    static int first = 1;
     
    304304
    305305    va_start(ap, fmt);
    306     p_psVLogMsg(name, level, fmt, ap);
     306    psVLogMsg(name, level, fmt, ap);
    307307    va_end(ap);
    308308}
  • trunk/psLib/src/sys/psLogMsg.h

    r482 r497  
    2525
    2626/// Logs a message
    27 void psLogMsg(const char *name,  ///< name of the log source
    28               int myLevel, ///< severity level of this log message
     27void psLogMsg(const char *name,     ///< name of the log source
     28              int myLevel,          ///< severity level of this log message
    2929              const char *fmt, ...) ///< printf-style format command
    3030;
    3131
    3232/// Logs a message from varargs
    33 void p_psVLogMsg(const char *name, ///< name of the log source
    34                  int myLevel, ///< severity level of this log message
    35                  const char *fmt,  ///< printf-style format command
    36                  va_list ap) ///< varargs argument list
     33void psVLogMsg(const char *name, ///< name of the log source
     34               int myLevel,      ///< severity level of this log message
     35               const char *fmt,  ///< printf-style format command
     36               va_list ap)      ///< varargs argument list
    3737;
    3838
  • trunk/psLib/src/sysUtils/psError.c

    r496 r497  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *   
    12  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-04-21 21:07:30 $
     12 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-04-21 21:14:41 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6565
    6666    // Call logging function with PS_LOG_ERROR level
    67     p_psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);
     67    psVLogMsg(name, PS_LOG_ERROR, fmt, argPtr);
    6868
    6969    // Clean up stack after variable argument has been used
  • trunk/psLib/src/sysUtils/psLogMsg.c

    r494 r497  
    2121static int logLevel = PS_LOG_INFO; // log all messages at this or above
    2222/*****************************************************************************
    23     psSetLogLevel(): Set the current log level and return old level.
    24     Input:
     23psSetLogLevel(): Set the current log level and return old level.
     24Input:
    2525 level (int): the new log level.
    26     Output:
     26Output:
    2727 none
    28     Return:
     28Return:
    2929 The old log level.
    3030 *****************************************************************************/
     
    4646
    4747/*****************************************************************************
    48     psSetLogDestination(): sets the destination where log messages will be
     48psSetLogDestination(): sets the destination where log messages will be
    4949 sent to.
    50     Input:
     50Input:
    5151 dest (int): the new log destination
    52     Output:
     52Output:
    5353 None.
    54     Return:
     54Return:
    5555 An integer specifying the old log destination.
    5656 *****************************************************************************/
     
    131131            // GUS: figure out the psError() format:
    132132            //     psError(__func__, PS_ERR_UNKNOWN, 1,
    133             //                   "Unknown logging keyword %c", *ptr);
     133            //            "Unknown logging keyword %c", *ptr);
    134134            break;
    135135        }
     
    154154#endif
    155155/*****************************************************************************
    156     p_psVLogMsg(): This routine sends the message, which is a printf style
     156    psVLogMsg(): This routine sends the message, which is a printf style
    157157 string specified in the "..." argument, to the current message log
    158158 destination with the severity specified by the "level" argument.
     
    161161 level
    162162 fmt
    163  app_psVLogMsg
     163 ap
    164164    Output:
    165165 none
     
    167167 NULL.
    168168 *****************************************************************************/
    169 void p_psVLogMsg(const char *name,
    170                  int level,
    171                  const char *fmt,
    172                  va_list ap)
     169void psVLogMsg(const char *name,
     170               int level,
     171               const char *fmt,
     172               va_list ap)
    173173{
    174174    static int first = 1;
     
    304304
    305305    va_start(ap, fmt);
    306     p_psVLogMsg(name, level, fmt, ap);
     306    psVLogMsg(name, level, fmt, ap);
    307307    va_end(ap);
    308308}
  • trunk/psLib/src/sysUtils/psLogMsg.h

    r482 r497  
    2525
    2626/// Logs a message
    27 void psLogMsg(const char *name,  ///< name of the log source
    28               int myLevel, ///< severity level of this log message
     27void psLogMsg(const char *name,     ///< name of the log source
     28              int myLevel,          ///< severity level of this log message
    2929              const char *fmt, ...) ///< printf-style format command
    3030;
    3131
    3232/// Logs a message from varargs
    33 void p_psVLogMsg(const char *name, ///< name of the log source
    34                  int myLevel, ///< severity level of this log message
    35                  const char *fmt,  ///< printf-style format command
    36                  va_list ap) ///< varargs argument list
     33void psVLogMsg(const char *name, ///< name of the log source
     34               int myLevel,      ///< severity level of this log message
     35               const char *fmt,  ///< printf-style format command
     36               va_list ap)      ///< varargs argument list
    3737;
    3838
Note: See TracChangeset for help on using the changeset viewer.