diff options
author | sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM> | 2009-04-10 11:36:51 +0530 |
---|---|---|
committer | sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM> | 2009-04-10 11:36:51 +0530 |
commit | 40e7ce05bde825a43b0db32ded62db8cc5b6ec9c (patch) | |
tree | 3e7d4fd0b9ab91c765de066fdc16e2c2d20bea99 /usr/src/cmd/print/bsd-sysv-commands/lpstat.c | |
parent | 35c620948de04c617711d72b089052077e73732e (diff) | |
download | illumos-gate-40e7ce05bde825a43b0db32ded62db8cc5b6ec9c.tar.gz |
6808025 Incomplete fix for 6699255
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpstat.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/lpstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c index 9e446bee19..94c3b7b98f 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c +++ b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c @@ -794,6 +794,8 @@ report_job(char *printer, papi_job_t job, int show_rank, int verbose) "printer-name", &destination); (void) papiAttributeListGetInteger(attrs, NULL, "job-id", &id); + (void) papiAttributeListGetInteger(attrs, NULL, + "job-id-requested", &id); snprintf(request, sizeof (request), "%s-%d", printer, id); @@ -811,7 +813,6 @@ report_job(char *printer, papi_job_t job, int show_rank, int verbose) (void) papiAttributeListGetInteger(attrs, NULL, "job-state", &jstate); - if (jstate == 0x0001) printf(gettext(" being held")); else if (jstate == 0x0800) |