Module Name: src
Committed By: martin
Date: Mon Dec 30 08:47:50 UTC 2013
Modified Files:
src/sys/arch/sparc/stand/ofwboot: boot.c
Log Message:
Improve debugging output
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/sparc/stand/ofwboot/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/ofwboot/boot.c
diff -u src/sys/arch/sparc/stand/ofwboot/boot.c:1.29 src/sys/arch/sparc/stand/ofwboot/boot.c:1.30
--- src/sys/arch/sparc/stand/ofwboot/boot.c:1.29 Mon May 28 19:24:30 2012
+++ src/sys/arch/sparc/stand/ofwboot/boot.c Mon Dec 30 08:47:50 2013
@@ -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 @@ check_boot_config(void)
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);