Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/arch/x68k/stand/mboot Pull up following revision(s) (...



details:   https://anonhg.NetBSD.org/src/rev/b3d8f45deff0
branches:  netbsd-6
changeset: 773996:b3d8f45deff0
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Apr 09 18:10:10 2012 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #172):
        sys/arch/x68k/stand/mboot/mboot.c: revision 1.11
        sys/arch/x68k/stand/mboot/mboot.c: revision 1.12
Print my progname in error messages.
It makes easy to find who displayed it.
Oops, One more message.

diffstat:

 sys/arch/x68k/stand/mboot/mboot.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (71 lines):

diff -r b571674b9a30 -r b3d8f45deff0 sys/arch/x68k/stand/mboot/mboot.c
--- a/sys/arch/x68k/stand/mboot/mboot.c Mon Apr 09 18:08:31 2012 +0000
+++ b/sys/arch/x68k/stand/mboot/mboot.c Mon Apr 09 18:10:10 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mboot.c,v 1.9.8.1 2012/04/09 18:08:31 riz Exp $        */
+/*     $NetBSD: mboot.c,v 1.9.8.2 2012/04/09 18:10:10 riz Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
                return 0;
 
        if (IOCS_S_READCAP(scsiid, &cap) < 0) {
-               IOCS_B_PRINT("Error in reading.\r\n");
+               IOCS_B_PRINT(BOOT ": Error in reading.\r\n");
                return 0;
        }
        size = cap.size >> 9;
@@ -58,12 +58,12 @@
        {
                long *label = (void*) 0x3000;
                if (IOCS_S_READ(0, 1, scsiid, size, label) < 0) {
-                       IOCS_B_PRINT("Error in reading.\r\n");
+                       IOCS_B_PRINT(BOOT ": Error in reading.\r\n");
                        return 0;
                }
                if (label[0] != 0x58363853 ||
                    label[1] != 0x43534931) {
-                       IOCS_B_PRINT("Invalid disk.\r\n");
+                       IOCS_B_PRINT(BOOT ": Invalid disk.\r\n");
                        return 0;
                }
        }
@@ -74,12 +74,12 @@
                unsigned char *t;
 
                if (IOCS_S_READ(2<<(2-size), size?2:1, scsiid, size, label) < 0) {
-                       IOCS_B_PRINT("Error in reading.\r\n");
+                       IOCS_B_PRINT(BOOT ": Error in reading.\r\n");
                        return 0;
                }
                t = label->dosparts[0].dp_typname;
                if (t[0] != 'X' || t[1] != '6' || t[2] != '8' || t[3] != 'K') {
-                       IOCS_B_PRINT("Invalid disk.\r\n");
+                       IOCS_B_PRINT(BOOT ": Invalid disk.\r\n");
                        return 0;
                }
 
@@ -108,11 +108,11 @@
                                                   size,
                                                   (void*) 0x2400);
                        if (r < 0) {
-                               IOCS_B_PRINT ("Error in reading.\r\n");
+                               IOCS_B_PRINT(BOOT ": Error in reading.\r\n");
                                return 0;
                        }
                        if (*((char*) 0x2400) != 0x60) {
-                               IOCS_B_PRINT("Invalid disk.\r\n");
+                               IOCS_B_PRINT(BOOT ": Invalid disk.\r\n");
                                return 0;
                        }
                        __asm volatile ("movl %0,%%d4\n\t"
@@ -123,7 +123,7 @@
                                      : "d4");
                        return 0;
                }
-               IOCS_B_PRINT ("No bootable partition.\r\n");
+               IOCS_B_PRINT(BOOT ": No bootable partition.\r\n");
                return 0;
        }
 



Home | Main Index | Thread Index | Old Index