From 4d64edad7a1c838fbdfefe0b03e689f5a9ca0a23 Mon Sep 17 00:00:00 2001 From: ylm Date: Thu, 28 Jul 2022 21:45:57 -0400 Subject: [PATCH] fix: Use standard macros for debug message formating --- src/target/adiv5.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 4f88f6d..6ee784c 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -64,9 +64,9 @@ * V * Component ID */ -#define CID_PREAMBLE 0xB105000DUL -#define CID_CLASS_MASK 0x0000F000UL -#define CID_CLASS_SHIFT 12UL +#define CID_PREAMBLE UINT32_C(0xB105000D) +#define CID_CLASS_MASK UINT32_C(0x0000F000) +#define CID_CLASS_SHIFT 12U /* The following enum is based on the Component Class value table 13-3 of the * ADIv5 standard. @@ -474,7 +474,7 @@ static void adiv5_component_probe(ADIv5_AP_t *ap, uint32_t addr, const size_t re /* CIDR preamble sanity check */ if ((cidr & ~CID_CLASS_MASK) != CID_PREAMBLE) { - DEBUG_WARN("%s%" PRIu32 " 0x%08" PRIx32 ": 0x%08" PRIx32 " <- does not match preamble (0x%lX)\n", indent + 1, + DEBUG_WARN("%s%" PRIu32 " 0x%08" PRIx32 ": 0x%08" PRIx32 " <- does not match preamble (0x%08" PRIx32 ")\n", indent + 1, num_entry, addr, cidr, CID_PREAMBLE); return; }