Skip to content

Commit

Permalink
target: stm32h7: print hex instead of decimal
Browse files Browse the repository at this point in the history
Use PRIx32 rather than PRId32 in the formatting string.

Unfortunately the wrong string was included in the previous patch.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs committed Aug 8, 2024
1 parent f1aec5f commit efb86d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/stm32h7.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ bool stm32h7_probe(target_s *target)
const uint32_t idcode = target_mem32_read32(target, STM32H7_DBGMCU_IDCODE);
const uint16_t dev_id = idcode & STM32H7_DBGMCU_IDCODE_DEV_MASK;
DEBUG_TARGET(
"%s: looking at device ID 0x%03x at 0x%08" PRIu32 "\n", __func__, dev_id, (uint32_t)STM32H7_DBGMCU_IDCODE);
"%s: looking at device ID 0x%03x at 0x%08" PRIx32 "\n", __func__, dev_id, (uint32_t)STM32H7_DBGMCU_IDCODE);
/* MP15x_CM4 errata: has a partno of 0x450. SoC DBGMCU says 0x500. */
if (dev_id != ID_STM32H72x && dev_id != ID_STM32H74x && dev_id != ID_STM32H7Bx)
return false;
Expand Down

0 comments on commit efb86d4

Please sign in to comment.