Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use %jx and a cast to uintmax_t, not %x, to print a...



details:   https://anonhg.NetBSD.org/src/rev/485e8c548e96
branches:  trunk
changeset: 815252:485e8c548e96
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat May 07 21:15:38 2016 +0000

description:
Use %jx and a cast to uintmax_t, not %x, to print a dev_t.

diffstat:

 sys/kern/vfs_wapbl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c8dfb93b8728 -r 485e8c548e96 sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c      Sat May 07 21:11:51 2016 +0000
+++ b/sys/kern/vfs_wapbl.c      Sat May 07 21:15:38 2016 +0000
@@ -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 @@
            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;



Home | Main Index | Thread Index | Old Index