IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2012, 4:31:05 PM (14 years ago)
Author:
eugene
Message:

add verbosity to catalog I/O errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/libdvo/src/dvo_catalog.c

    r33869 r33901  
    211211 
    212212  if (!check_file_access (catalog[0].filename, BACKUP, READWRITE, VERBOSE)) {
    213     if (VERBOSE) fprintf (stderr, "no permission to access %s\n", catalog[0].filename);
     213    fprintf (stderr, "no permission to access %s\n", catalog[0].filename);
    214214    return (FALSE);
    215215  }
     
    219219  switch (dvo_catalog_lock (catalog, catalog[0].lockmode)) {
    220220  case DVO_CAT_OPEN_FAIL:
    221     if (VERBOSE) fprintf (stderr, "can't lock file %s\n", catalog[0].filename);
     221    fprintf (stderr, "can't lock file %s\n", catalog[0].filename);
    222222    return (FALSE);
    223223  case DVO_CAT_OPEN_OK:
    224224    if (!dvo_catalog_load (catalog, VERBOSE)) {
    225       if (VERBOSE) fprintf (stderr, "failure loading catalog\n");
     225      fprintf (stderr, "failure loading catalog\n");
    226226      return (FALSE);
    227227    }
    228228    if (!dvo_catalog_check (catalog, Nsecfilt, TRUE)) {
    229       if (VERBOSE) fprintf (stderr, "can't reduce number of secondary filters\n");
     229      fprintf (stderr, "can't reduce number of secondary filters\n");
    230230      return (FALSE);
    231231    }
Note: See TracChangeset for help on using the changeset viewer.