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

    r4706 r7917  
    2828      return (JobPool_Crash);
    2929    default:
    30       fprintf (stderr, "error: unknown job stack : programming error\n");
     30      gprint (GP_ERR, "error: unknown job stack : programming error\n");
    3131      exit (1);
    3232  }
    33   fprintf (stderr, "error: unknown job stack : programming error\n");
     33  gprint (GP_ERR, "error: unknown job stack : programming error\n");
    3434  exit (1);
    3535}
     
    151151  job = GetJob (StackID, N);
    152152  if (job == NULL) {
    153     fprintf (stderr, "programming error! job missing from stack\n");
     153    gprint (GP_ERR, "programming error! job missing from stack\n");
    154154    exit (1);
    155155  }
     
    176176
    177177  PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
    178   fprintf (stderr, "added new job\n");
     178  gprint (GP_ERR, "added new job\n");
    179179  return (job[0].JobID);
    180180}
     
    203203  host = (Host *) job[0].host;
    204204  if (host == NULL) {
    205     fprintf (stderr, "programming error: job has no host\n");
     205    gprint (GP_ERR, "programming error: job has no host\n");
    206206    exit (2);
    207207  }
     
    213213  /* remove host from correct stack */
    214214  if (PullHost (host[0].HostID, host[0].stack) == NULL) {
    215     fprintf (stderr, "programming error: host is not found in current stack\n");
     215    gprint (GP_ERR, "programming error: host is not found in current stack\n");
    216216    exit (2);
    217217  }
     
    226226  /* remove job from correct stack */
    227227  if (PullJob (job[0].JobID, job[0].stack) == NULL) {
    228     fprintf (stderr, "programming error: job is not found in current stack\n");
     228    gprint (GP_ERR, "programming error: job is not found in current stack\n");
    229229    exit (2);
    230230  }
Note: See TracChangeset for help on using the changeset viewer.