diff options
author | sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM> | 2010-03-29 20:59:36 +0530 |
---|---|---|
committer | sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM> | 2010-03-29 20:59:36 +0530 |
commit | c7f2fd24c9b933d8806de9016fb9bca3f269a8af (patch) | |
tree | c175c9baa36d9de3dac3d5b0cb6563d0ea6b2196 /usr/src/cmd/print/bsd-sysv-commands/common.c | |
parent | 567c0b92c2af3154cccac71336940521945f8ae8 (diff) | |
download | illumos-joyent-c7f2fd24c9b933d8806de9016fb9bca3f269a8af.tar.gz |
6919676 lpstat output message under powersave mode need to be fixed
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/common.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/common.c b/usr/src/cmd/print/bsd-sysv-commands/common.c index 05aaa45758..5df4e3b9b7 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/common.c +++ b/usr/src/cmd/print/bsd-sysv-commands/common.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ @@ -185,7 +185,10 @@ printer_state_line(FILE *fp, papi_printer_t p, int num_jobs, char *name) if ((state != 0x03) || (num_jobs != 0)) { fprintf(fp, "%s: %s", name, state_string(state)); - if (state == 0x05) /* stopped */ + if ((state == 0x05) || + (state == 0x06) || + (state == 0x07) || + (state == 0x08)) /* stopped */ fprintf(fp, ": %s\n", reason); else fprintf(fp, "\n"); |