Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst sysinst: Restore printing disk descriptions...



details:   https://anonhg.NetBSD.org/src/rev/5ea6c3a78efc
branches:  trunk
changeset: 366122:5ea6c3a78efc
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 15 12:48:25 2022 +0000

description:
sysinst: Restore printing disk descriptions, lost in r1.35

diffstat:

 usr.sbin/sysinst/disks.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 12c4f61aab09 -r 5ea6c3a78efc usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Sun May 15 12:45:33 2022 +0000
+++ b/usr.sbin/sysinst/disks.c  Sun May 15 12:48:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.76 2021/08/21 11:55:26 andvar Exp $ */
+/*     $NetBSD: disks.c,v 1.77 2022/05/15 12:48:25 jmcneill Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -329,15 +329,15 @@
 
        /* try ATA */
        if (get_descr_ata(dd))
-               goto done;
+               return;
        /* try SCSI */
        if (get_descr_scsi(dd))
-               goto done;
+               return;
 
        /* XXX: identify for ld @ NVME or microSD */
 
        /* XXX: get description from raid, cgd, vnd... */
-done:
+
        /* punt, just give some generic info */
        humanize_number(size, sizeof(size),
            (uint64_t)dd->dd_secsize * (uint64_t)dd->dd_totsec,



Home | Main Index | Thread Index | Old Index