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.basic/list.c

    r4689 r7917  
    2323  if ((argc > 2) && (!strcmp (argv[2], "-split"))) {
    2424    if (argc == 3) {
    25       fprintf (stderr, "USAGE: list (root) -split (word) (word) ...\n");
     25      gprint (GP_ERR, "USAGE: list (root) -split (word) (word) ...\n");
    2626      return (FALSE);
    2727    }
     
    3838
    3939  if (argc != 2) {
    40     fprintf (stderr, "USAGE: list (root) -- terminate with 'END'\n");
     40    gprint (GP_ERR, "USAGE: list (root) -- terminate with 'END'\n");
    4141    return (FALSE);
    4242  }
     
    5656      Nread = fread (&val[Nbytes], 1, 1023, f);
    5757      if (Nread < 0) {
    58         fprintf (stderr, "error reading from command\n");
     58        gprint (GP_ERR, "error reading from command\n");
    5959        done = TRUE;
    6060      }
     
    7474   
    7575    if (status) {
    76       fprintf (stderr, "warning: exit status of command %d\n", status);
     76      gprint (GP_ERR, "warning: exit status of command %d\n", status);
    7777    }
    7878     
     
    109109    if (input == (char *) NULL) {
    110110      if (ThisList == 0)  {
    111         fprintf (stderr, "end list with 'END'\n");
     111        gprint (GP_ERR, "end list with 'END'\n");
    112112        continue;
    113113      } else {
Note: See TracChangeset for help on using the changeset viewer.