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/cmd.data/accum.c

    r4689 r7917  
    1616
    1717  if ((argc != 6) && (argc != 7)) {
    18     fprintf (stderr, "USAGE: accum <value> <vector> <key> start end [delta]\n");
    19     fprintf (stderr, "  sum <value> in bins corresponding to the value of <key>\n");
     18    gprint (GP_ERR, "USAGE: accum <value> <vector> <key> start end [delta]\n");
     19    gprint (GP_ERR, "  sum <value> in bins corresponding to the value of <key>\n");
    2020    return (FALSE);
    2121  }
     
    2424  if ((key = SelectVector (argv[3], OLDVECTOR, TRUE)) == NULL) return (FALSE);
    2525  if (val[0].Nelements != key[0].Nelements) {
    26     fprintf (stderr, "key and value don't match\n");
     26    gprint (GP_ERR, "key and value don't match\n");
    2727    return (FALSE);
    2828  }
     
    3636    delta = 1;
    3737  if ((start == end) || (delta == 0)) {
    38     fprintf (stderr, "error in value: %f to %f, %f\n", start, end, delta);
     38    gprint (GP_ERR, "error in value: %f to %f, %f\n", start, end, delta);
    3939    return (FALSE);
    4040  }
Note: See TracChangeset for help on using the changeset viewer.