Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst The network settings confirmation message i...



details:   https://anonhg.NetBSD.org/src/rev/096abc9d4aa8
branches:  trunk
changeset: 1000119:096abc9d4aa8
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 08 19:46:57 2019 +0000

description:
The network settings confirmation message is a manually formated table,
so do not treat it as free flowing text.

diffstat:

 usr.sbin/sysinst/net.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 1b623bf50197 -r 096abc9d4aa8 usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c    Mon Jul 08 19:36:02 2019 +0000
+++ b/usr.sbin/sysinst/net.c    Mon Jul 08 19:46:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net.c,v 1.31 2019/07/07 12:58:45 martin Exp $  */
+/*     $NetBSD: net.c,v 1.32 2019/07/08 19:46:57 martin Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -731,8 +731,9 @@
        }
 
        /* confirm the setting */
+       msg_clear();
        if (slip)
-               msg_fmt_display(MSG_netok_slip, "%s%s%s%s%s%s%s%s%s",
+               msg_fmt_table_add(MSG_netok_slip, "%s%s%s%s%s%s%s%s%s",
                    net_domain,
                    net_host,
                    *net_namesvr == '\0' ? "<none>" : net_namesvr,
@@ -743,7 +744,7 @@
                    *net_mask == '\0' ? "<none>" : net_mask,
                    *net_defroute == '\0' ? "<none>" : net_defroute);
        else
-               msg_fmt_display(MSG_netok, "%s%s%s%s%s%s%s%s",
+               msg_fmt_table_add(MSG_netok, "%s%s%s%s%s%s%s%s",
                    net_domain,
                    net_host,
                    *net_namesvr == '\0' ? "<none>" : net_namesvr,
@@ -753,7 +754,7 @@
                    *net_mask == '\0' ? "<none>" : net_mask,
                    *net_defroute == '\0' ? "<none>" : net_defroute);
 #ifdef INET6
-       msg_fmt_display_add(MSG_netokv6, "%s",
+       msg_fmt_table_add(MSG_netokv6, "%s",
                     !is_v6kernel() ? "<not supported>" : net_ip6);
 #endif
 done:



Home | Main Index | Thread Index | Old Index