From c907de064d20ac836640e960c515637ca0abf2e8 Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Tue, 6 Jun 2017 09:19:31 -0400 Subject: [PATCH] Add "long" output format for -e option. --- systemv/lpstat.c | 9 +++++++-- 1 file 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); -- 2.39.2