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 Remove useless/harmful casts in deb...
details: https://anonhg.NetBSD.org/src/rev/4c18ab2f32b6
branches: trunk
changeset: 373329:4c18ab2f32b6
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Feb 03 08:05:27 2023 +0000
description:
Remove useless/harmful casts in debug messages. MPIDR AFF3 would not
be printed before.
diffstat:
sys/arch/aarch64/aarch64/cpu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 675041ccdb2f -r 4c18ab2f32b6 sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c Fri Feb 03 05:43:55 2023 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c Fri Feb 03 08:05:27 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.72 2022/12/22 06:58:47 ryo Exp $ */
+/* $NetBSD: cpu.c,v 1.73 2023/02/03 08:05:27 skrll Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.72 2022/12/22 06:58:47 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.73 2023/02/03 08:05:27 skrll Exp $");
#include "locators.h"
#include "opt_arm_debug.h"
@@ -329,8 +329,8 @@
{
struct aarch64_sysctl_cpu_id * const id = &ci->ci_id;
- aprint_debug_dev(self, "midr=0x%" PRIx32 " mpidr=0x%" PRIx32 "\n",
- (uint32_t)id->ac_midr, (uint32_t)id->ac_mpidr);
+ aprint_debug_dev(self, "midr=0x%" PRIx64 " mpidr=0x%" PRIx64 "\n",
+ id->ac_midr, id->ac_mpidr);
aprint_verbose_dev(self, "revID=0x%" PRIx64, id->ac_revidr);
/* ID_AA64DFR0_EL1 */
Home |
Main Index |
Thread Index |
Old Index