Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc Don't display "NetBSD disklabel". Th...



details:   https://anonhg.NetBSD.org/src/rev/a37d9f294020
branches:  trunk
changeset: 481959:a37d9f294020
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Thu Feb 10 12:33:45 2000 +0000

description:
Don't display "NetBSD disklabel".  This message appears too many times
if more than two or three disks exist.

diffstat:

 sys/arch/macppc/macppc/disksubr.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 753637015010 -r a37d9f294020 sys/arch/macppc/macppc/disksubr.c
--- a/sys/arch/macppc/macppc/disksubr.c Thu Feb 10 09:45:00 2000 +0000
+++ b/sys/arch/macppc/macppc/disksubr.c Thu Feb 10 12:33:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.6 2000/01/18 19:44:18 thorpej Exp $     */
+/*     $NetBSD: disksubr.c,v 1.7 2000/02/10 12:33:45 tsubai Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -522,12 +522,11 @@
 
        osdep->cd_start = -1;
 
-       if (biowait(bp)) {
+       if (biowait(bp))
                msg = "I/O error reading block zero";
-       } if (get_netbsd_label(dev, strat, lp, 0)) {
+       else if (get_netbsd_label(dev, strat, lp, 0))
                osdep->cd_start = 0;
-               msg = "NetBSD disklabel";
-       } else {
+       else {
                u_int16_t *sbSigp;
 
                sbSigp = (u_int16_t *)bp->b_un.b_addr;



Home | Main Index | Thread Index | Old Index