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

    r4703 r7917  
    1515
    1616  if (argc != 2) {
    17     fprintf (stderr, "USAGE: queuesize (name) [-var variable]\n");
     17    gprint (GP_ERR, "USAGE: queuesize (name) [-var variable]\n");
    1818    return (FALSE);
    1919  }
     
    2121  queue = FindQueue (argv[1]);
    2222  if (queue == NULL) {
    23     fprintf (stderr, "ERROR: queue %s not found\n", argv[1]);
     23    gprint (GP_ERR, "ERROR: queue %s not found\n", argv[1]);
    2424    return (FALSE);
    2525  }
    2626
    2727  if (var == (char *) NULL) {
    28     fprintf (stderr, "Nlines: %d\n", queue[0].Nlines);
     28    gprint (GP_ERR, "Nlines: %d\n", queue[0].Nlines);
    2929    return (TRUE);
    3030  }
Note: See TracChangeset for help on using the changeset viewer.