From: Kern Sibbald Date: Sun, 23 Jul 2017 08:13:00 +0000 (+0200) Subject: Apply ideas from bug #2255 prettier status slots output X-Git-Tag: Release-9.0.2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f763c53e71f523ed2fe7107907ffb2c2090664b;p=bacula%2Fbacula Apply ideas from bug #2255 prettier status slots output --- diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index c2611d0196..7e42e61e52 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -1175,7 +1175,7 @@ void status_slots(UAContext *ua, STORE *store_r) int max_slots; int i=1; /* Slot | Volume | Status | MediaType | Pool */ - const char *slot_hformat=" %4i%c| %16s | %9s | %20s | %18s |\n"; + const char *slot_hformat="| %4i%c| %-30s | %-9s | %-10s | %-18s |\n"; if (ua->api) { status_content(ua, store_r); @@ -1209,8 +1209,9 @@ void status_slots(UAContext *ua, STORE *store_r) ua->warning_msg(_("No Volumes found, or no barcodes.\n")); goto bail_out; } - ua->send_msg(_(" Slot | Volume Name | Status | Media Type | Pool |\n")); - ua->send_msg(_("------+------------------+-----------+----------------------+--------------------|\n")); + ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n")); + ua->send_msg(_("| Slot | Volume Name | Status | Media Type | Pool |\n")); + ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n")); /* Walk through the list getting the media records */ for (vl=vol_list; vl; vl=vl->next) { @@ -1243,6 +1244,7 @@ void status_slots(UAContext *ua, STORE *store_r) slot_list[i]=0; } } + ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n")); memset(&mr, 0, sizeof(MEDIA_DBR)); bstrncpy(mr.VolumeName, vl->VolName, sizeof(mr.VolumeName));