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/368f5cc637fc
branches:  trunk
changeset: 991989:368f5cc637fc
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 fc75993b6446 -r 368f5cc637fc 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