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/pcontrol/job.c

    r4689 r7917  
    1717  if ((N = get_argument (argc, argv, "+host"))) {
    1818    if (Mode == PCONTROL_JOB_WANTHOST) {
    19       fprintf (stderr, "ERROR: -host and +host are incompatible\n");
     19      gprint (GP_ERR, "ERROR: -host and +host are incompatible\n");
    2020      FREE (Host);
    2121      return (FALSE);
     
    3636
    3737  if (argc < 2) {
    38     fprintf (stderr, "USAGE: job [options] (arg0) (arg1) ... (argN)\n");
     38    gprint (GP_ERR, "USAGE: job [options] (arg0) (arg1) ... (argN)\n");
    3939    FREE (Host);
    4040    return (FALSE);
     
    4848
    4949  JobID = AddJob (Host, Mode, Timeout, targc, targv);
    50   fprintf (stdout, "JobID: %d\n", (int) JobID);
     50  gprint (GP_LOG, "JobID: %d\n", (int) JobID);
    5151  return (TRUE);
    5252}
Note: See TracChangeset for help on using the changeset viewer.