Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/accum.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/accum.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/accum.c
r4689 r7917 16 16 17 17 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"); 20 20 return (FALSE); 21 21 } … … 24 24 if ((key = SelectVector (argv[3], OLDVECTOR, TRUE)) == NULL) return (FALSE); 25 25 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"); 27 27 return (FALSE); 28 28 } … … 36 36 delta = 1; 37 37 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); 39 39 return (FALSE); 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.
