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 Add a # to a %x printf format to get some...



details:   https://anonhg.NetBSD.org/src/rev/ffa4fbca169a
branches:  trunk
changeset: 961053:ffa4fbca169a
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Apr 07 14:27:39 2021 +0000

description:
Add a # to a %x printf format to get some 0x hex number prefixes.

diffstat:

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

diffs (27 lines):

diff -r e01685d68aaa -r ffa4fbca169a sys/arch/mips/mips/db_disasm.c
--- a/sys/arch/mips/mips/db_disasm.c    Wed Apr 07 09:58:58 2021 +0000
+++ b/sys/arch/mips/mips/db_disasm.c    Wed Apr 07 14:27:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.40 2021/04/05 07:28:19 simonb Exp $    */
+/*     $NetBSD: db_disasm.c,v 1.41 2021/04/07 14:27:39 simonb Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.40 2021/04/05 07:28:19 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.41 2021/04/07 14:27:39 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -914,7 +914,7 @@
                if (diff == 0)
                        db_printf("%s", symname);
                else
-                       db_printf("<%s+%"DDB_EXPR_FMT"x>", symname, diff);
+                       db_printf("<%s+%#"DDB_EXPR_FMT"x>", symname, diff);
                db_printf("\t[addr:%#"PRIxVADDR"]", loc);
        } else {
                db_printf("%#"PRIxVADDR, loc);



Home | Main Index | Thread Index | Old Index