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 If we're going to print a number in hex, ...



details:   https://anonhg.NetBSD.org/src/rev/1d826cf64ae3
branches:  trunk
changeset: 379129:1d826cf64ae3
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu May 13 03:41:46 2021 +0000

description:
If we're going to print a number in hex, at least put a 0x in front of it.

diffstat:

 sys/arch/mips/mips/mips_fputrap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5c2a3b63f061 -r 1d826cf64ae3 sys/arch/mips/mips/mips_fputrap.c
--- a/sys/arch/mips/mips/mips_fputrap.c Thu May 13 03:37:58 2021 +0000
+++ b/sys/arch/mips/mips/mips_fputrap.c Thu May 13 03:41:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_fputrap.c,v 1.10 2011/02/26 15:41:32 tsutsui Exp $ */
+/* $NetBSD: mips_fputrap.c,v 1.11 2021/05/13 03:41:46 simonb Exp $ */
 
 /*
  * Copyright (c) 2004
@@ -47,7 +47,7 @@ mips_fpuexcept(struct lwp *l, uint32_t f
        ksiginfo_t ksi;
 
 #ifdef FPEMUL_DEBUG
-       printf("%s(%x,%#"PRIxREGISTER")\n",
+       printf("%s(%#x,%#"PRIxREGISTER")\n",
           __func__, fpustat, l->l_md.md_utf->tf_regs[_R_PC]);
 #endif
 
@@ -64,7 +64,7 @@ mips_fpuillinst(struct lwp *l, uint32_t 
        ksiginfo_t ksi;
 
 #ifdef FPEMUL_DEBUG
-       printf("%s(%x,%#"PRIxREGISTER")\n",
+       printf("%s(%#x,%#"PRIxREGISTER")\n",
           __func__, opcode, l->l_md.md_utf->tf_regs[_R_PC]);
 #endif
 



Home | Main Index | Thread Index | Old Index