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/lib.shell/macro_list.c

    r2598 r7917  
    77
    88  if (argc != 2) {
    9     fprintf (stderr, "USAGE: macro list <macro>\n");
     9    gprint (GP_ERR, "USAGE: macro list <macro>\n");
    1010    return (FALSE);
    1111  }
     
    1313  macro = MatchMacro (argv[0], FALSE, TRUE);
    1414  if (macro == NULL) {
    15     fprintf (stderr, "%s: Macro not found\n", argv[1]);
     15    gprint (GP_ERR, "%s: Macro not found\n", argv[1]);
    1616    return (FALSE);
    1717  }
    1818
    1919  for (i = 0; i < macro[0].Nlines; i++) {
    20     fprintf (stderr, "%s\n", macro[0].line[i]);
     20    gprint (GP_ERR, "%s\n", macro[0].line[i]);
    2121  }
    2222  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.