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/fitsed.c

    r7892 r7917  
    187187  /* loop over regions, extract data for each region */
    188188  // XXX add interrupt checks
    189   fprintf (stderr, "using %d possible regions\n", skylist[0].Nregions);
     189  gprint (GP_ERR, "using %d possible regions\n", skylist[0].Nregions);
    190190  for (k = 0; k < skylist[0].Nregions; k++) {
    191191    /* lock, load, unlock catalog */
     
    326326        KiiCursorOn (fd);
    327327        while (KiiCursorRead (fd, &X, &Y, key)) {
    328           fprintf (stderr, "window: %f %f (%s)\n", X, Y, key);
     328          gprint (GP_ERR, "window: %f %f (%s)\n", X, Y, key);
    329329          if (!strcasecmp (key, "Q")) {
    330330            KiiCursorOff (fd);
     
    343343    unlock_catalog (&catalog);
    344344  }
    345   fprintf (stderr, "fitted %d stars\n", Nfit);
     345  gprint (GP_ERR, "fitted %d stars\n", Nfit);
    346346  status = TRUE;
    347347  goto finish;
    348348 
    349349usage:
    350   fprintf (stderr, "USAGE: fitset (sedtable) : (F) - (F)\n");
     350  gprint (GP_ERR, "USAGE: fitset (sedtable) : (F) - (F)\n");
    351351  goto escape;
    352352
    353353table_missing:
    354   fprintf (stderr, "ERROR: can't open the SED table\n");
     354  gprint (GP_ERR, "ERROR: can't open the SED table\n");
    355355  goto escape;
    356356
    357357color_missing:
    358   fprintf (stderr, "ERROR: reference color not in SED table\n");
     358  gprint (GP_ERR, "ERROR: reference color not in SED table\n");
    359359  goto escape;
    360360
    361361color_undefined:
    362   fprintf (stderr, "ERROR: undefined photcode in reference color\n");
     362  gprint (GP_ERR, "ERROR: undefined photcode in reference color\n");
    363363  goto escape;
    364364
    365365code_missing:
    366   fprintf (stderr, "ERROR: undefined photcode in SED table\n");
     366  gprint (GP_ERR, "ERROR: undefined photcode in SED table\n");
    367367  goto escape;
    368368
Note: See TracChangeset for help on using the changeset viewer.