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/994a57797e36
branches:  trunk
changeset: 325584:994a57797e36
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 787d065588a5 -r 994a57797e36 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