Skip to content

Commit

Permalink
msp432e4: use PRIx32 in msp432e4_probe
Browse files Browse the repository at this point in the history
Using printf formatters fixes the build on ESP32 Xtensa targets.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs authored and dragonmux committed Dec 1, 2023
1 parent 0368b7c commit ef32a54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/target/msp432e4.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ bool msp432e4_probe(target_s *const target)
(devid1 & MSP432E4_SYS_CTRL_DID1_FAMILY_MASK) != MSP432E4_SYS_CTRL_DID1_MSP432E4)
return false;

DEBUG_TARGET("%s: Device version %x:%x, part ID %x, pin count %u, temperature grade %x, package type %x\n",
DEBUG_TARGET("%s: Device version %" PRIx32 ":%" PRIx32 ", part ID %" PRIx32 ", pin count %" PRIu32
", temperature grade %" PRIx32 ", package type %" PRIx32 "\n",
__func__, (devid0 >> MSP432E4_SYS_CTRL_DID0_VERSION_MAJ_SHIFT) & MSP432E4_SYS_CTRL_DID0_VERSION_MAJ_MASK,
devid0 & MSP432E4_SYS_CTRL_DID0_VERSION_MIN_MASK,
(devid1 >> MSP432E4_SYS_CTRL_DID1_PART_NUM_SHIFT) & MSP432E4_SYS_CTRL_DID1_PART_NUM_MASK,
Expand Down

0 comments on commit ef32a54

Please sign in to comment.