Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/boot use a single printf call for readab...



details:   https://anonhg.NetBSD.org/src/rev/495f9f5ec0c4
branches:  trunk
changeset: 379843:495f9f5ec0c4
user:      nia <nia%NetBSD.org@localhost>
date:      Mon Jun 21 19:52:17 2021 +0000

description:
use a single printf call for readability

diffstat:

 sys/arch/i386/stand/boot/boot2.c |  23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diffs (37 lines):

diff -r e4a7cf7a1be2 -r 495f9f5ec0c4 sys/arch/i386/stand/boot/boot2.c
--- a/sys/arch/i386/stand/boot/boot2.c  Mon Jun 21 19:43:17 2021 +0000
+++ b/sys/arch/i386/stand/boot/boot2.c  Mon Jun 21 19:52:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot2.c,v 1.76 2021/06/21 19:43:17 nia Exp $   */
+/*     $NetBSD: boot2.c,v 1.77 2021/06/21 19:52:17 nia Exp $   */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -311,16 +311,17 @@ print_banner(void)
                        printf("%s\n", bootcfg_info.banner[n]);
        } else {
 #endif /* !SMALL */
-               printf("\n");
-               printf("  \\-__,------,___.\n");
-               printf("   \\        __,---`  %s (from NetBSD %s)\n",
-                   bootprog_name, bootprog_kernrev);
-               printf("    \\       `---,_.  Revision %s\n", bootprog_rev);
-               printf("     \\-,_____,.---`  Memory: %d/%d k\n",
-                   getbasemem(), getextmem());
-               printf("      \\\n");
-               printf("       \\\n");
-               printf("        \\\n");
+               printf("\n"
+                      "  \\-__,------,___.\n"
+                      "   \\        __,---`  %s (from NetBSD %s)\n"
+                      "    \\       `---,_.  Revision %s\n"
+                      "     \\-,_____,.---`  Memory: %d/%d k\n"
+                      "      \\\n"
+                      "       \\\n"
+                      "        \\\n",
+                      bootprog_name, bootprog_kernrev,
+                      bootprog_rev,
+                      getbasemem(), getextmem());
 #ifndef SMALL
        }
 #endif /* !SMALL */



Home | Main Index | Thread Index | Old Index