aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr_vty_subscr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hlr_vty_subscr.c')
-rw-r--r--src/hlr_vty_subscr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hlr_vty_subscr.c b/src/hlr_vty_subscr.c
index 59a27c1..602a9e4 100644
--- a/src/hlr_vty_subscr.c
+++ b/src/hlr_vty_subscr.c
@@ -182,8 +182,11 @@ static void subscr_dump_summary_vty(struct hlr_subscriber *subscr, void *data)
vty_out(vty," ------------- ");
}
vty_out(vty, " %-2s%-2s ", subscr->nam_cs ? "CS" : "", subscr->nam_ps ? "PS" : "");
- if (subscr->last_lu_seen)
+ if (subscr->last_lu_seen) {
+ /* VLR Number is max length 32, possibly truncate here */
+ vty_out(vty, " %.22s ", subscr->vlr_number);
dump_last_lu_seen(vty, "CS", subscr->last_lu_seen, true);
+ }
vty_out_newline(vty);
}
@@ -218,8 +221,8 @@ static void dump_summary_table_vty(struct vty *vty, bool header, bool show_ls)
{
const char *texts = "ID MSISDN IMSI IMEI NAM";
const char *lines = "----- ------------ ---------------- ---------------- -----";
- const char *ls_text = " LAST SEEN";
- const char *ls_line = " ------------";
+ const char *ls_text = " VLR_NUMBER LAST SEEN ";
+ const char *ls_line = " --------------------- ---------------------";
if (header) {
if (!show_ls)
vty_out(vty, "%s%s%s%s", texts, VTY_NEWLINE, lines, VTY_NEWLINE);