IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2007, 1:58:17 PM (19 years ago)
Author:
jhoblitt
Message:

update psAbort() API

Location:
trunk/psModules/src/config
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r11396 r11687  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-01-30 00:05:16 $
     6 *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-02-07 23:58:17 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    10061006        FILE *f = fopen (config->argv[Narg], "r");
    10071007        if (f == NULL) {
    1008             psAbort ("psphot", "unable to open specified list file");
     1008            psAbort("unable to open specified list file");
    10091009        }
    10101010        while (fgets (line, 1024, f) != NULL) {
     
    10201020            default:
    10211021                // rigid format, no comments allowed?
    1022                 psAbort ("pmConfig", "error parsing input list file");
     1022                psAbort("error parsing input list file");
    10231023                break;
    10241024            }
  • trunk/psModules/src/config/pmConfigCamera.c

    r11624 r11687  
    118118        break;
    119119    default:
    120         psAbort(PS_FILE_LINE, "Should never get here.\n");
     120        psAbort("Should never get here.\n");
    121121    }
    122122
     
    144144            break;
    145145        default:
    146             psAbort(PS_FILE_LINE, "Should never get here.\n");
     146            psAbort("Should never get here.\n");
    147147        }
    148148
     
    199199            break;
    200200        default:
    201             psAbort(PS_FILE_LINE, "Should never get here.\n");
     201            psAbort("Should never get here.\n");
    202202        }
    203203
     
    252252            break;
    253253        default:
    254             psAbort(PS_FILE_LINE, "Should never get here.\n");
     254            psAbort("Should never get here.\n");
    255255        }
    256256
  • trunk/psModules/src/config/pmConfigRecipes.c

    r11676 r11687  
    126126    if (optionsItem) {
    127127        if (optionsItem->type != PS_DATA_METADATA) {
    128             psAbort(__func__, "OPTIONS is not of type METADATA.");
     128            psAbort("OPTIONS is not of type METADATA.");
    129129        }
    130130        options = psMemIncrRefCounter(optionsItem->data.V);
     
    220220    if (recipesItem) {
    221221        if (recipesItem->type != PS_DATA_METADATA) {
    222             psAbort(__func__, "RECIPES is not of type METADATA.");
     222            psAbort("RECIPES is not of type METADATA.");
    223223        }
    224224        recipes = psMemIncrRefCounter(recipesItem->data.V);
     
    256256                psFree(recipe);                 // Drop reference
    257257            } else {
    258                 psAbort ("pmConfig.c", "error reading config file %s\n", recipeSource);
     258                psAbort("error reading config file %s\n", recipeSource);
    259259            }
    260260        } else {
     
    284284    assert(config);
    285285    if ((sourceType != PM_RECIPE_SOURCE_SITE) && (sourceType != PM_RECIPE_SOURCE_CAMERA)) {
    286         psAbort ("pmConfig", "invalid source for loadRecipes");
     286        psAbort("invalid source for loadRecipes");
    287287    }
    288288    if (!source) {
     
    308308        // type mismatch is a serious error
    309309        if (fileItem->type != PS_DATA_STRING) {
    310             psAbort ("pmConfig", "%s in %s RECIPES is not of type STR", fileItem->name, sourceName);
     310            psAbort("%s in %s RECIPES is not of type STR", fileItem->name, sourceName);
    311311        }
    312312
     
    323323        if (currentItem) {
    324324            if (currentItem->type != PS_DATA_METADATA) {
    325                 psAbort(__func__, "Item from recipes is not of type METADATA.");
     325                psAbort("Item from recipes is not of type METADATA.");
    326326            }
    327327            current = psMemIncrRefCounter(currentItem->data.V);
     
    364364        // type mismatch is a serious error
    365365        if (item->type != PS_DATA_METADATA) {
    366             psAbort ("pmConfig", "%s in config arguments RECIPES is not of type METADATA", item->name);
     366            psAbort("%s in config arguments RECIPES is not of type METADATA", item->name);
    367367        }
    368368        // increment the ref counter to protect the data
     
    470470        // type mismatch is a serious error
    471471        if (item->type != PS_DATA_METADATA) {
    472             psAbort ("pmConfig", "%s in config arguments OPTIONS is not of type METADATA", item->name);
     472            psAbort("%s in config arguments OPTIONS is not of type METADATA", item->name);
    473473        }
    474474        // increment the ref counter to protect the data
Note: See TracChangeset for help on using the changeset viewer.