Module Name:    src
Committed By:   martin
Date:           Tue Jun  9 09:18:37 UTC 2015

Modified Files:
        src/sys/arch/mips/mips: db_interface.c

Log Message:
Fix printf formats for db_expr_t on 32bit kernels


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/mips/mips/db_interface.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/arch/mips/mips/db_interface.c
diff -u src/sys/arch/mips/mips/db_interface.c:1.77 src/sys/arch/mips/mips/db_interface.c:1.78
--- src/sys/arch/mips/mips/db_interface.c:1.77	Sat Jun  6 22:19:07 2015
+++ src/sys/arch/mips/mips/db_interface.c	Tue Jun  9 09:18:37 2015
@@ -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 @@ db_mfcr_cmd(db_expr_t addr, bool have_ad
 		".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 @@ db_mtcr_cmd(db_expr_t addr, bool have_ad
 		".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 */
 

Reply via email to