IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2006, 11:39:44 AM (20 years ago)
Author:
jhoblitt
Message:

fix a wide range of format string errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r8246 r8669  
    243243            file->camera = pmConfigCameraByName(config, words->data[0]);
    244244            if (!file->camera) {
    245                 psError(PS_ERR_IO, false, "camera %s not found\n", words->data[0]);
     245                psError(PS_ERR_IO, false, "camera %s not found\n", (char *)words->data[0]);
    246246                psFree(words);
    247247                return NULL;
     
    305305    }
    306306    if (infiles->n < 1) {
    307         psError(PS_ERR_IO, false, "Found n == %d files in %s in arguments\n", infiles->n, argname);
     307        psError(PS_ERR_IO, false, "Found n == %ld files in %s in arguments\n", infiles->n, argname);
    308308        return NULL;
    309309    }
     
    318318    format = pmConfigCameraFormatFromHeader (config, phu);
    319319    if (!format) {
    320         psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", infiles->data[0]);
     320        psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", (char *)infiles->data[0]);
    321321        psFree(phu);
    322322        return NULL;
     
    326326    fpa = pmFPAConstruct (config->camera);
    327327    if (!fpa) {
    328         psError(PS_ERR_IO, false, "Failed to construct FPA from %s", infiles->data[0]);
     328        psError(PS_ERR_IO, false, "Failed to construct FPA from %s", (char *)infiles->data[0]);
    329329        return NULL;
    330330    }
     
    433433    }
    434434    if (infiles->n <= entry) {
    435         psError(PS_ERR_IO, false, "only %d files in %s in argument, entry %d requested\n", infiles->n, argname, entry);
     435        psError(PS_ERR_IO, false, "only %ld files in %s in argument, entry %d requested\n", infiles->n, argname, entry);
    436436        return NULL;
    437437    }
     
    448448    format = pmConfigCameraFormatFromHeader (config, phu);
    449449    if (!format) {
    450         psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", infiles->data[0]);
     450        psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", (char *)infiles->data[0]);
    451451        psFree(phu);
    452452        return NULL;
     
    456456    fpa = pmFPAConstruct (config->camera);
    457457    if (!fpa) {
    458         psError(PS_ERR_IO, false, "Failed to construct FPA from %s", infiles->data[0]);
     458        psError(PS_ERR_IO, false, "Failed to construct FPA from %s", (char *)infiles->data[0]);
    459459        return NULL;
    460460    }
Note: See TracChangeset for help on using the changeset viewer.