diff options
author | John Thacker <johnthacker@gmail.com> | 2021-12-09 06:47:50 -0500 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-12-10 14:15:29 +0000 |
commit | f888074deff5acc6a8c03ccf846f46367168c49c (patch) | |
tree | db62ac8e769786dab7a4fb17e09dd276fd6c6732 | |
parent | 61b402cbe96f54429ceec69fea0f238cb8780476 (diff) |
cli: Cleanup rtspstat tap output format
Actually output the packet count for RTSP response status codes,
and align the columns between requests and response. (This CLI-only
stat is largely redundant with rtsp,tree but it might as well work.)
-rw-r--r-- | ui/cli/tap-rtspstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/cli/tap-rtspstat.c b/ui/cli/tap-rtspstat.c index 28f5977ba0..203f605505 100644 --- a/ui/cli/tap-rtspstat.c +++ b/ui/cli/tap-rtspstat.c @@ -207,12 +207,12 @@ rtspstat_draw(void *psp ) else printf("RTSP Statistics with filter %s\n", sp->filter); - printf( "* RTSP Status Codes in reply packets\n"); + printf("* RTSP Response Status Codes Packets\n"); g_hash_table_foreach( sp->hash_responses, (GHFunc)rtsp_draw_hash_responses, - (gpointer)" RTSP %3d %s\n"); - printf("* List of RTSP Request methods\n"); + (gpointer)" %3d %-35s %9d\n"); + printf("* RTSP Request Methods Packets\n"); g_hash_table_foreach( sp->hash_requests, (GHFunc)rtsp_draw_hash_requests, - (gpointer)" %9s %d \n"); + (gpointer)" %-39s %9d\n"); printf("===================================================================\n"); } |