Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Improve debugging output



details:   https://anonhg.NetBSD.org/src/rev/9652c7c994d9
branches:  trunk
changeset: 792324:9652c7c994d9
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 30 08:47:50 2013 +0000

description:
Improve debugging output

diffstat:

 sys/arch/sparc/stand/ofwboot/boot.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7b4b276db76e -r 9652c7c994d9 sys/arch/sparc/stand/ofwboot/boot.c
--- a/sys/arch/sparc/stand/ofwboot/boot.c       Mon Dec 30 08:43:28 2013 +0000
+++ b/sys/arch/sparc/stand/ofwboot/boot.c       Mon Dec 30 08:47:50 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.29 2012/05/28 19:24:30 martin Exp $ */
+/*     $NetBSD: boot.c,v 1.30 2013/12/30 08:47:50 martin Exp $ */
 
 /*
  * Copyright (c) 1997, 1999 Eduardo E. Horvath.  All rights reserved.
@@ -478,7 +478,10 @@
        if (!root_fs_quickseekable) return;
        DPRINTF(("checking for /boot.cfg...\n"));
        fd = open("/boot.cfg", 0);
-       if (fd < 0) return;
+       if (fd < 0) {
+               DPRINTF(("no /boot.cfg found\n"));
+               return;
+       }
        DPRINTF(("found /boot.cfg\n"));
        if (fstat(fd, &st) == -1 || st.st_size > 32*1024) {
                close(fd);



Home | Main Index | Thread Index | Old Index