Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 13:14:11 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200631 - in head/sys/boot: i386/libi386 pc98/libpc98
Message-ID:  <200912171314.nBHDEBQa034586@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nyan
Date: Thu Dec 17 13:14:11 2009
New Revision: 200631
URL: http://svn.freebsd.org/changeset/base/200631

Log:
  Fix debug messages of bd_io().
  
  MFC after:	1 week

Modified:
  head/sys/boot/i386/libi386/biosdisk.c
  head/sys/boot/pc98/libpc98/biosdisk.c

Modified: head/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- head/sys/boot/i386/libi386/biosdisk.c	Thu Dec 17 12:42:45 2009	(r200630)
+++ head/sys/boot/i386/libi386/biosdisk.c	Thu Dec 17 13:14:11 2009	(r200631)
@@ -1266,11 +1266,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: head/sys/boot/pc98/libpc98/biosdisk.c
==============================================================================
--- head/sys/boot/pc98/libpc98/biosdisk.c	Thu Dec 17 12:42:45 2009	(r200630)
+++ head/sys/boot/pc98/libpc98/biosdisk.c	Thu Dec 17 13:14:11 2009	(r200631)
@@ -906,11 +906,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?200912171314.nBHDEBQa034586>