Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix printf formats for db_expr_t on 32bit...



details:   https://anonhg.NetBSD.org/src/rev/f02b0affd63d
branches:  trunk
changeset: 338799:f02b0affd63d
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 09 09:18:37 2015 +0000

description:
Fix printf formats for db_expr_t on 32bit kernels

diffstat:

 sys/arch/mips/mips/db_interface.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r be7256f3ae6f -r f02b0affd63d sys/arch/mips/mips/db_interface.c
--- a/sys/arch/mips/mips/db_interface.c Tue Jun 09 08:13:17 2015 +0000
+++ b/sys/arch/mips/mips/db_interface.c Tue Jun 09 09:18:37 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.77 2015/06/06 22:19:07 matt Exp $   */
+/*     $NetBSD: db_interface.c,v 1.78 2015/06/09 09:18:37 martin Exp $ */
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.77 2015/06/06 22:19:07 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.78 2015/06/09 09:18:37 martin Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_cputype.h"       /* which mips CPUs do we support? */
@@ -696,7 +696,8 @@
                ".set pop                       \n\t"                   \
            : "=r"(value) : "r"(addr));
        
-       db_printf("control reg 0x%lx = 0x%" PRIx64 "\n", addr, value);
+       db_printf("control reg 0x%" DDB_EXPR_FMT "x = 0x%" PRIx64 "\n",
+           addr, value);
 }
 
 void
@@ -726,7 +727,8 @@
                ".set pop                       \n\t"                   \
            :: "r"(value), "r"(addr));
 
-       db_printf("control reg 0x%lx = 0x%lx\n", addr, value);
+       db_printf("control reg 0x%" DDB_EXPR_FMT "x = 0x%" DDB_EXPR_FMT "x\n",
+           addr, value);
 }
 #endif /* MIPS64_XLS */
 



Home | Main Index | Thread Index | Old Index