diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-06 09:19:31 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-06 09:19:31 -0400 |
commit | c907de064d20ac836640e960c515637ca0abf2e8 (patch) | |
tree | 9c28f7886fb253e7872e1a25f42b04d82f196c1c /systemv | |
parent | 30afb232cda30f31058d31df23c6a493ed0ee649 (diff) | |
download | cups-c907de064d20ac836640e960c515637ca0abf2e8.tar.gz |
Add "long" output format for -e option.
Diffstat (limited to 'systemv')
-rw-r--r-- | systemv/lpstat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c index 5d3654dbf..901cbefcb 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -250,9 +250,14 @@ main(int argc, /* I - Number of command-line arguments */ for (j = num_temp, dest = temp; j > 0; j --, dest ++) { if (dest->instance) - printf("%s/%s\n", dest->name, dest->instance); + printf("%s/%s", dest->name, dest->instance); else - puts(dest->name); + fputs(dest->name, stdout); + + if (long_status) + printf(" %s\n", cupsGetOption("device-uri", dest->num_options, dest->options)); + else + putchar('\n'); } cupsFreeDests(num_temp, temp); |