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

    r4689 r7917  
    77
    88  if (argc < 2) {
    9     fprintf (stderr, "USAGE: delete (JobID)\n");
     9    gprint (GP_ERR, "USAGE: delete (JobID)\n");
    1010    return (FALSE);
    1111  }
     
    2222  if (job != NULL) goto found;
    2323
    24   fprintf (stderr, "job %s not PENDING, CRASH, EXIT\n", argv[1]);
     24  gprint (GP_ERR, "job %s not PENDING, CRASH, EXIT\n", argv[1]);
    2525  return (FALSE);
    2626 
     
    2828  {
    2929    int j;
    30     fprintf (stderr, "deleting job  %s  %d  ", job[0].hostname, job[0].argc);
     30    gprint (GP_LOG, "deleting job  %s  %d  ", job[0].hostname, job[0].argc);
    3131    for (j = 0; j < job[0].argc; j++) {
    32       fprintf (stderr, "%s ", job[0].argv[j]);
     32      gprint (GP_LOG, "%s ", job[0].argv[j]);
    3333    }
    34     PrintID (stderr, job[0].JobID);
    35     fprintf (stderr, "\n");
     34    PrintID (GP_LOG, job[0].JobID);
     35    gprint (GP_LOG, "\n");
    3636  } 
    3737  DelJob (job);
Note: See TracChangeset for help on using the changeset viewer.