Module Name: src
Committed By: riastradh
Date: Sat May 7 21:15:38 UTC 2016
Modified Files:
src/sys/kern: vfs_wapbl.c
Log Message:
Use %jx and a cast to uintmax_t, not %x, to print a dev_t.
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 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.75 src/sys/kern/vfs_wapbl.c:1.76
--- src/sys/kern/vfs_wapbl.c:1.75 Sat May 7 21:11:51 2016
+++ src/sys/kern/vfs_wapbl.c Sat May 7 21:15:38 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_wapbl.c,v 1.75 2016/05/07 21:11:51 riastradh Exp $ */
+/* $NetBSD: vfs_wapbl.c,v 1.76 2016/05/07 21:15:38 riastradh 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.75 2016/05/07 21:11:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.76 2016/05/07 21:15:38 riastradh Exp $");
#include <sys/param.h>
#include <sys/bitops.h>
@@ -2131,8 +2131,8 @@ wapbl_cache_sync(struct wapbl *wl, const
FWRITE, FSCRED);
if (error) {
WAPBL_PRINTF(WAPBL_PRINT_ERROR,
- ("wapbl_cache_sync: DIOCCACHESYNC on dev 0x%x "
- "returned %d\n", wl->wl_devvp->v_rdev, error));
+ ("wapbl_cache_sync: DIOCCACHESYNC on dev 0x%jx "
+ "returned %d\n", (uintmax_t)wl->wl_devvp->v_rdev, error));
}
if (verbose) {
struct bintime d;