IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/catalog.c

    r7680 r7917  
    4949  NN = get_argument (argc, argv, "-n");
    5050  if (NN && Nn) {
    51     fprintf (stderr, "can't mix meas and miss scaling\n");
     51    gprint (GP_ERR, "can't mix meas and miss scaling\n");
    5252    return (FALSE);
    5353  }
     
    163163 
    164164  if ((InRegion || (argc != 2)) && (!InRegion || (argc != 1))) {
    165     fprintf (stderr, "USAGE: catalog (filename / -all) [-m M M] [-n N N] [-g] [-a RA DEC MAG] \n");
     165    gprint (GP_ERR, "USAGE: catalog (filename / -all) [-m M M] [-n N N] [-g] [-a RA DEC MAG] \n");
    166166    return (FALSE);
    167167  }
     
    185185      f = fopen (argv[1], "r");
    186186      if (f == (FILE *) NULL) {
    187         fprintf (stderr, "ERROR: can't open catalog file: %s\n", argv[1]);
     187        gprint (GP_ERR, "ERROR: can't open catalog file: %s\n", argv[1]);
    188188        return (FALSE);
    189189      }
     
    225225      f = fopen (argv[1], "r");
    226226      if (f == (FILE *) NULL) {
    227         fprintf (stderr, "ERROR: can't open catalog file: %s\n", argv[1]);
     227        gprint (GP_ERR, "ERROR: can't open catalog file: %s\n", argv[1]);
    228228        return (FALSE);
    229229      }
     
    274274      f = fopen (filename, "r");
    275275      if (f == (FILE *) NULL) {
    276         fprintf (stderr, "no stars in %s, skipping\n", filename);
     276        gprint (GP_ERR, "no stars in %s, skipping\n", filename);
    277277        continue;
    278278        /* return (FALSE); */
Note: See TracChangeset for help on using the changeset viewer.