IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

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

    r2204 r2273  
    1111 *  @author George Gusciora, MHPCC
    1212 *
    13  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-10-27 00:57:31 $
     13 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-11-04 01:05:00 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    110110
    111111    if (sscanf(dest, "%4s:%256s", protocol, location) < 2) {
    112         psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
    113                    PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED,
    114                    dest);
     112        psError(PS_ERR_LOCATION_INVALID, true,
     113                PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED,
     114                dest);
    115115        return false;
    116116    }
     
    131131            return true;
    132132        }
    133         psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
    134                    PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID,
    135                    location);
     133        psError(PS_ERR_LOCATION_INVALID, true,
     134                PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID,
     135                location);
    136136        return 1;
    137137    } else if (strcmp(protocol, "file") == 0) {
     
    139139
    140140        if (file == NULL) {
    141             psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_IO,
    142                        PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED,
    143                        location);
     141            psError(PS_ERR_IO, true,
     142                    PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED,
     143                    location);
    144144            return false;
    145145        }
     
    151151    }
    152152
    153     psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetDestination", true, PS_ERR_LOCATION_INVALID,
    154                PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL,
    155                protocol);
     153    psError(PS_ERR_LOCATION_INVALID, true,
     154            PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL,
     155            protocol);
    156156    return false;
    157157}
     
    215215            break;
    216216        default:
    217             psErrorMsg(PS_ERRORNAME_DOMAIN "psLogSetFormat", true, PS_ERR_BAD_PARAMETER_VALUE,
    218                        PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);
     217            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     218                    PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);
    219219            break;
    220220        }
Note: See TracChangeset for help on using the changeset viewer.