Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/boot/boot Add a diagnostic when we encounter an...



details:   https://anonhg.NetBSD.org/src/rev/dcfc1c820acc
branches:  trunk
changeset: 507332:dcfc1c820acc
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Mar 20 05:51:35 2001 +0000

description:
Add a diagnostic when we encounter an unknown boot device type.

diffstat:

 sys/arch/vax/boot/boot/devopen.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4105144e2910 -r dcfc1c820acc sys/arch/vax/boot/boot/devopen.c
--- a/sys/arch/vax/boot/boot/devopen.c  Tue Mar 20 05:49:32 2001 +0000
+++ b/sys/arch/vax/boot/boot/devopen.c  Tue Mar 20 05:51:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: devopen.c,v 1.7 2000/07/13 03:13:40 matt Exp $ */
+/*     $NetBSD: devopen.c,v 1.8 2001/03/20 05:51:35 matt Exp $ */
 /*
  * Copyright (c) 1997 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -122,8 +122,10 @@
                c = (char *)fname;
        }
 
-       if (!dp->dv_open)
+       if (!dp->dv_open) {
+               printf("Can't open device type %d\n", dev);
                return(ENODEV);
+       }
        f->f_dev = dp;
        bootrpb.unit = unit;
        bootrpb.devtyp = dev;



Home | Main Index | Thread Index | Old Index