IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/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}
Note: See TracChangeset for help on using the changeset viewer.