From 4f1441352623c8b63146650bad5615609f126dce Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 29 Jan 2024 09:46:56 -0500 Subject: [PATCH] MT#59038 abbreviate single-line CLI output Change-Id: Icf49b03534e271432a999d491c37a2bbd8f1bf72 --- daemon/cli.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/cli.c b/daemon/cli.c index 2ddfcfe91..fa1b9177c 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -764,7 +764,11 @@ static void cli_incoming_list_sessions(str *instr, struct cli_writer *cw) { } found++; - cw->cw_printf(cw, "callid: %60s | deletionmark:%4s | created:%12i | proxy:%s | redis_keyspace:%i | foreign:%s\n", call->callid.s, call->ml_deleted?"yes":"no", (int)call->created.tv_sec, call->created_from, call->redis_hosted_db, IS_FOREIGN_CALL(call)?"yes":"no"); + cw->cw_printf(cw, "ID: %60s | del:%s | creat:%12li | prx:%s | redis:%2i | frgn:%s\n", + call->callid.s, call->ml_deleted ? "y" : "n", + (long) call->created.tv_sec, + call->created_from, call->redis_hosted_db, + IS_FOREIGN_CALL(call) ? "y" : "n"); next:; ITERATE_CALL_LIST_NEXT_END(call);