IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4367 for trunk/psLib/src/sys


Ignore:
Timestamp:
Jun 22, 2005, 5:50:29 PM (21 years ago)
Author:
drobbin
Message:

changed files according to requested revisions outlined in apidelta-report-cycle6

Location:
trunk/psLib/src/sys
Files:
2 edited

Legend:

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

    r4321 r4367  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-20 22:42:30 $
     14 *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-23 03:50:29 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8787 An psBool: TRUE if successful.
    8888 *****************************************************************************/
    89 psBool psLogSetDestination(const char *dest)
     89bool psLogSetDestination(const char *dest)
    9090{
    9191    char protocol[5];
     
    163163    NULL.
    164164 *****************************************************************************/
    165 void psLogSetFormat(const char *fmt)
     165void psLogSetFormat(const char *format)
    166166{
    167167    // assume none.
     
    173173
    174174    // if fmt is NULL, no logging is desired.
    175     if (fmt == NULL) {
     175    if (format == NULL) {
    176176        return;
    177177    }
    178178
    179179    // XXX: What is the purpose of this conditional.
    180     if (strlen(fmt) == 0) {
    181         fmt = "THLNM";
     180    if (strlen(format) == 0) {
     181        format = "THLNM";
    182182    }
    183183    // Step through each character in the format string.  For each letter
    184184    // in that string, set the appropriate logging.
    185185
    186     for (const char *ptr = fmt; *ptr != '\0'; ptr++) {
     186    for (const char *ptr = format; *ptr != '\0'; ptr++) {
    187187        switch (*ptr) {
    188188        case 'H':
     
    215215    // XXX: If one must at least log error messages, why don't we set logMsg = true here?
    216216    if (!logMsg) {
    217         psTrace("utils.logMsg", 1, "You must at least log error messages (You chose \"%s\")", fmt);
     217        psTrace("utils.logMsg", 1, "You must at least log error messages (You chose \"%s\")", format);
    218218    }
    219219}
  • trunk/psLib/src/sys/psLogMsg.h

    r4330 r4367  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-06-21 03:01:37 $
     13 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-23 03:50:29 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3030 *  argument which can specify general log destinations.
    3131 *
    32  *  @return psS32     true if set successfully, otherwise false.
     32 *  @return bool     true if set successfully, otherwise false.
    3333 */
    34 psBool psLogSetDestination(
     34bool psLogSetDestination(
    3535    const char *dest                   ///< Specifies where to send messages.
    3636);
     
    5656 */
    5757void psLogSetFormat(
    58     const char *fmt                    ///< Specifies the system log format
     58    const char *format                 ///< Specifies the system log format
    5959);
    6060
Note: See TracChangeset for help on using the changeset viewer.