fix: Use standard macros for debug message formating
This commit is contained in:
parent
57fec4d0b6
commit
4d64edad7a
|
@ -64,9 +64,9 @@
|
||||||
* V
|
* V
|
||||||
* Component ID
|
* Component ID
|
||||||
*/
|
*/
|
||||||
#define CID_PREAMBLE 0xB105000DUL
|
#define CID_PREAMBLE UINT32_C(0xB105000D)
|
||||||
#define CID_CLASS_MASK 0x0000F000UL
|
#define CID_CLASS_MASK UINT32_C(0x0000F000)
|
||||||
#define CID_CLASS_SHIFT 12UL
|
#define CID_CLASS_SHIFT 12U
|
||||||
|
|
||||||
/* The following enum is based on the Component Class value table 13-3 of the
|
/* The following enum is based on the Component Class value table 13-3 of the
|
||||||
* ADIv5 standard.
|
* 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 */
|
/* CIDR preamble sanity check */
|
||||||
if ((cidr & ~CID_CLASS_MASK) != CID_PREAMBLE) {
|
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);
|
num_entry, addr, cidr, CID_PREAMBLE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue