Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 use DDB_EXPR_FMT. fix typo.



details:   https://anonhg.NetBSD.org/src/rev/e64429ea54e3
branches:  trunk
changeset: 834371:e64429ea54e3
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sat Aug 11 04:46:17 2018 +0000

description:
use DDB_EXPR_FMT. fix typo.

diffstat:

 sys/arch/aarch64/aarch64/db_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3f7f4fe4748a -r e64429ea54e3 sys/arch/aarch64/aarch64/db_machdep.c
--- a/sys/arch/aarch64/aarch64/db_machdep.c     Sat Aug 11 03:41:06 2018 +0000
+++ b/sys/arch/aarch64/aarch64/db_machdep.c     Sat Aug 11 04:46:17 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.5 2018/07/17 00:31:03 christos Exp $ */
+/* $NetBSD: db_machdep.c,v 1.6 2018/08/11 04:46:17 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.5 2018/07/17 00:31:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.6 2018/08/11 04:46:17 ryo Exp $");
 
 #include "opt_kernhist.h"
 #include "opt_uvmhist.h"
@@ -435,7 +435,7 @@
     const char *modif)
 {
 #define SHOW_ARMREG(x) \
-       db_printf("%-16s = %016" PRIx64 "x\n", #x, reg_ ## x ## _read())
+       db_printf("%-16s = %016" PRIx64 "\n", #x, reg_ ## x ## _read())
 
        SHOW_ARMREG(cbar_el1);
        SHOW_ARMREG(ccsidr_el1);
@@ -822,7 +822,7 @@
        }
 
        if (added >= 0)
-               db_printf("add watchpoint %d as %016llx\n", added, addr);
+               db_printf("add watchpoint %d as %016"DDB_EXPR_FMT"x\n", added, addr);
        if (cleared >= 0)
                db_printf("clear watchpoint %d\n", cleared);
 



Home | Main Index | Thread Index | Old Index