Source-Changes-HG archive

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

[src/trunk]: src/lib/libkvm Use PRIxPADDR instead of type casting.



details:   https://anonhg.NetBSD.org/src/rev/2b61fd84f7c4
branches:  trunk
changeset: 811477:2b61fd84f7c4
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Sat Oct 31 02:40:44 2015 +0000

description:
Use PRIxPADDR instead of type casting.

diffstat:

 lib/libkvm/kvm_sparc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1fa9f0e7a5eb -r 2b61fd84f7c4 lib/libkvm/kvm_sparc.c
--- a/lib/libkvm/kvm_sparc.c    Sat Oct 31 02:36:17 2015 +0000
+++ b/lib/libkvm/kvm_sparc.c    Sat Oct 31 02:40:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_sparc.c,v 1.34 2015/10/07 11:56:41 martin Exp $    */
+/*     $NetBSD: kvm_sparc.c,v 1.35 2015/10/31 02:40:44 nakayama Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)kvm_sparc.c        8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: kvm_sparc.c,v 1.34 2015/10/07 11:56:41 martin Exp $");
+__RCSID("$NetBSD: kvm_sparc.c,v 1.35 2015/10/31 02:40:44 nakayama Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -363,7 +363,7 @@
                off += mp->size;
        }
        if (nmem < 0) {
-               _kvm_err(kd, 0, "invalid address (%lx)", (unsigned long)pa);
+               _kvm_err(kd, 0, "invalid address (%#"PRIxPADDR")", pa);
                return (-1);
        }
 



Home | Main Index | Thread Index | Old Index