Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2009 12:26:13 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r200937 - in stable/7/sys/boot: i386/libi386 pc98/libpc98
Message-ID:  <200912241226.nBOCQDwS030169@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nyan
Date: Thu Dec 24 12:26:13 2009
New Revision: 200937
URL: http://svn.freebsd.org/changeset/base/200937

Log:
  MFC: revision 200631
  
    Fix debug messages of bd_io().

Modified:
  stable/7/sys/boot/i386/libi386/biosdisk.c
  stable/7/sys/boot/pc98/libpc98/biosdisk.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- stable/7/sys/boot/i386/libi386/biosdisk.c	Thu Dec 24 12:19:52 2009	(r200936)
+++ stable/7/sys/boot/i386/libi386/biosdisk.c	Thu Dec 24 12:26:13 2009	(r200937)
@@ -1274,11 +1274,11 @@ bd_io(struct open_disk *od, daddr_t dblk
 	}
 
 	if (write)
-	    DEBUG("%d sectors from %lld to %p (0x%x) %s", x, dblk, p, VTOP(p),
-		result ? "failed" : "ok");
+	    DEBUG("Write %d sector(s) from %p (0x%x) to %lld %s", x,
+		p, VTOP(p), dblk, result ? "failed" : "ok");
 	else
-	    DEBUG("%d sectors from %p (0x%x) to %lld %s", x, p, VTOP(p), dblk,
-		result ? "failed" : "ok");
+	    DEBUG("Read %d sector(s) from %lld to %p (0x%x) %s", x,
+		dblk, p, VTOP(p), result ? "failed" : "ok");
 	if (result) {
 	    return(-1);
 	}

Modified: stable/7/sys/boot/pc98/libpc98/biosdisk.c
==============================================================================
--- stable/7/sys/boot/pc98/libpc98/biosdisk.c	Thu Dec 24 12:19:52 2009	(r200936)
+++ stable/7/sys/boot/pc98/libpc98/biosdisk.c	Thu Dec 24 12:26:13 2009	(r200937)
@@ -846,11 +846,11 @@ bd_io(struct open_disk *od, daddr_t dblk
 	}
 
 	if (write)
-	    DEBUG("%d sectors from %lld to %p (0x%x) %s", x, dblk, p, VTOP(p),
-		result ? "failed" : "ok");
+	    DEBUG("Write %d sector(s) from %p (0x%x) to %lld %s", x,
+		p, VTOP(p), dblk, result ? "failed" : "ok");
 	else
-	    DEBUG("%d sectors from %p (0x%x) to %lld %s", x, p, VTOP(p), dblk,
-		result ? "failed" : "ok");
+	    DEBUG("Read %d sector(s) from %lld to %p (0x%x) %s", x,
+		dblk, p, VTOP(p), result ? "failed" : "ok");
 	if (result) {
 	    return(-1);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912241226.nBOCQDwS030169>