Module Name:    src
Committed By:   pooka
Date:           Wed Nov 25 14:43:31 UTC 2009

Modified Files:
        src/sys/kern: vfs_wapbl.c

Log Message:
make WAPBL_DEBUG_PRINT compile


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/kern/vfs_wapbl.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/kern/vfs_wapbl.c
diff -u src/sys/kern/vfs_wapbl.c:1.28 src/sys/kern/vfs_wapbl.c:1.29
--- src/sys/kern/vfs_wapbl.c:1.28	Thu Oct  1 12:28:34 2009
+++ src/sys/kern/vfs_wapbl.c	Wed Nov 25 14:43:31 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_wapbl.c,v 1.28 2009/10/01 12:28:34 pooka Exp $	*/
+/*	$NetBSD: vfs_wapbl.c,v 1.29 2009/11/25 14:43:31 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.28 2009/10/01 12:28:34 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.29 2009/11/25 14:43:31 pooka Exp $");
 
 #include <sys/param.h>
 
@@ -501,7 +501,6 @@
 
 #ifdef WAPBL_DEBUG_PRINT
 	{
-		struct wapbl_entry *we;
 		pid_t pid = -1;
 		lwpid_t lid = -1;
 		if (curproc)
@@ -691,7 +690,7 @@
 	bp->b_blkno = pbn;
 
 	WAPBL_PRINTF(WAPBL_PRINT_IO,
-	    ("wapbl_doio: %s %d bytes at block %"PRId64" on dev 0x%x\n",
+	    ("wapbl_doio: %s %d bytes at block %"PRId64" on dev 0x%"PRIx64"\n",
 	    BUF_ISWRITE(bp) ? "write" : "read", bp->b_bcount,
 	    bp->b_blkno, bp->b_dev));
 
@@ -703,7 +702,7 @@
 	if (error) {
 		WAPBL_PRINTF(WAPBL_PRINT_ERROR,
 		    ("wapbl_doio: %s %zu bytes at block %" PRId64
-		    " on dev 0x%x failed with error %d\n",
+		    " on dev 0x%"PRIx64" failed with error %d\n",
 		    (((flags & (B_WRITE | B_READ)) == B_WRITE) ?
 		     "write" : "read"),
 		    len, pbn, devvp->v_rdev, error));
@@ -1833,8 +1832,8 @@
 	error = VOP_IOCTL(wl->wl_devvp, DIOCCACHESYNC, &force, FWRITE, FSCRED);
 	if (error) {
 		WAPBL_PRINTF(WAPBL_PRINT_ERROR,
-		    ("wapbl_write_commit: DIOCCACHESYNC on dev 0x%x "
-		    "returned %d\n", wl->wl_devvp->v_rdev, error));
+		    ("wapbl_write_commit: DIOCCACHESYNC on dev 0x%"PRIx64
+		    " returned %d\n", wl->wl_devvp->v_rdev, error));
 	}
 
 	wc->wc_head = head;
@@ -1862,8 +1861,8 @@
 	error = VOP_IOCTL(wl->wl_devvp, DIOCCACHESYNC, &force, FWRITE, FSCRED);
 	if (error) {
 		WAPBL_PRINTF(WAPBL_PRINT_ERROR,
-		    ("wapbl_write_commit: DIOCCACHESYNC on dev 0x%x "
-		    "returned %d\n", wl->wl_devvp->v_rdev, error));
+		    ("wapbl_write_commit: DIOCCACHESYNC on dev 0x%"PRIx64
+		    " returned %d\n", wl->wl_devvp->v_rdev, error));
 	}
 
 	/*

Reply via email to