summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty_io_term.c')
-rw-r--r--lib/vty_io_term.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/vty_io_term.c b/lib/vty_io_term.c
index 7ef7e0df..fc0fd8f0 100644
--- a/lib/vty_io_term.c
+++ b/lib/vty_io_term.c
@@ -431,17 +431,15 @@ uty_term_write_close(vio_vf vf)
*/
if (vio->state & vst_final)
{
- const char* reason, * sep ;
+ const char* reason ;
vf->cli = uty_cli_free(vf->cli) ;
reason = qs_string(vf->vio->close_reason) ;
- sep = ": " ;
if ((reason == NULL) || (*reason == '\0'))
- reason = sep = "" ;
+ reason = "closed" ;
- zlog_info("VTY connection (fd %d) closed%s%s",
- vio_vfd_fd(vf->vfd), sep, reason) ;
+ zlog_info("VTY connection (fd %d) %s", vio_vfd_fd(vf->vfd), reason) ;
}
else if (vf_active(vf->vout_state))
{