Improve whitespace alignment of RTR error reports
authorjob <job@openbsd.org>
Tue, 31 Jan 2023 14:32:43 +0000 (14:32 +0000)
committerjob <job@openbsd.org>
Tue, 31 Jan 2023 14:32:43 +0000 (14:32 +0000)
OK claudio@

usr.sbin/bgpctl/output.c

index 192d8b4..4babc62 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: output.c,v 1.35 2023/01/24 15:50:10 job Exp $ */
+/*     $OpenBSD: output.c,v 1.36 2023/01/31 14:32:43 job Exp $ */
 
 /*
  * Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1079,14 +1079,14 @@ show_rtr(struct ctl_show_rtr *rtr)
                printf(" Last sent error: %s\n",
                  log_rtr_error(rtr->last_sent_error));
                if (rtr->last_sent_msg[0])
-                       printf(" with reason \"%s\"",
+                       printf("   with reason \"%s\"",
                            log_reason(rtr->last_sent_msg));
        }
        if (rtr->last_recv_error != NO_ERROR) {
-               printf("Last received error: %s\n",
+               printf(" Last received error: %s\n",
                  log_rtr_error(rtr->last_recv_error));
                if (rtr->last_recv_msg[0])
-                       printf(" with reason \"%s\"",
+                       printf("   with reason \"%s\"",
                            log_reason(rtr->last_recv_msg));
        }