Module Name: src
Committed By: minoura
Date: Tue Mar 20 12:37:01 UTC 2012
Modified Files:
src/sys/arch/x68k/stand/boot: Makefile boot.c
Log Message:
Be silent.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x68k/stand/boot/Makefile
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x68k/stand/boot/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/x68k/stand/boot/Makefile
diff -u src/sys/arch/x68k/stand/boot/Makefile:1.21 src/sys/arch/x68k/stand/boot/Makefile:1.22
--- src/sys/arch/x68k/stand/boot/Makefile:1.21 Sun Dec 25 06:09:09 2011
+++ src/sys/arch/x68k/stand/boot/Makefile Tue Mar 20 12:37:01 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2011/12/25 06:09:09 tsutsui Exp $
+# $NetBSD: Makefile,v 1.22 2012/03/20 12:37:01 minoura Exp $
NOMAN= # defined
@@ -32,7 +32,7 @@ SRCS+= vers.c
CLEANFILES+= vers.c
vers.c: ${VERSIONFILE}
${_MKTARGET_CREATE}
- ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
+ ${HOST_SH} ${S}/conf/newvers_stand.sh \
${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
CPPFLAGS+= -nostdinc -I$S -I${.OBJDIR} -I$M/stand/libsa
Index: src/sys/arch/x68k/stand/boot/boot.c
diff -u src/sys/arch/x68k/stand/boot/boot.c:1.17 src/sys/arch/x68k/stand/boot/boot.c:1.18
--- src/sys/arch/x68k/stand/boot/boot.c:1.17 Sun Dec 25 06:09:09 2011
+++ src/sys/arch/x68k/stand/boot/boot.c Tue Mar 20 12:37:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.17 2011/12/25 06:09:09 tsutsui Exp $ */
+/* $NetBSD: boot.c,v 1.18 2012/03/20 12:37:01 minoura Exp $ */
/*
* Copyright (c) 2001 Minoura Makoto
@@ -124,8 +124,10 @@ doboot(const char *file, int flags)
printf("XXX: unknown corruption in /boot.\n");
}
+#ifdef DEBUG
printf("dev = %x, unit = %d, part = %c, name = %s\n",
dev, unit, part + 'a', name);
+#endif
if (dev == 0) { /* SCSI */
dev = X68K_MAKESCSIBOOTDEV(X68K_MAJOR_SD,
@@ -135,6 +137,7 @@ doboot(const char *file, int flags)
} else {
dev = X68K_MAKEBOOTDEV(X68K_MAJOR_FD, unit & 3, 0);
}
+#ifdef DEBUG
printf("boot device = %x\n", dev);
printf("if = %d, unit = %d, id = %d, lun = %d, part = %c\n",
B_X68K_SCSI_IF(dev),
@@ -142,9 +145,12 @@ doboot(const char *file, int flags)
B_X68K_SCSI_ID(dev),
B_X68K_SCSI_LUN(dev),
B_X68K_SCSI_PART(dev) + 'a');
+#endif
p = ((short*) marks[MARK_ENTRY]) - 1;
+#ifdef DEBUG
printf("Kernel Version: 0x%x\n", *p);
+#endif
if (*p != 0x4e73 && *p != 0) {
/*
* XXX temporary solution; compatibility loader