Skip to content

Commit

Permalink
s32k3xx: fix debug logging format
Browse files Browse the repository at this point in the history
printf-style formatting should use standard format strings in order to
keep code portable across architectures.

This fixes the build on Xtensa targets.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs authored and dragonmux committed Feb 7, 2024
1 parent 1b532ac commit c4015cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/s32k3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static bool s32k3xx_flash_trigger_mcr(target_flash_s *const flash, uint32_t mcr_
}

if ((mcrs & 0xffff0000U) > 0U) {
DEBUG_ERROR("Operation failed, MCRS: %x\n", mcrs);
DEBUG_ERROR("Operation failed, MCRS: %" PRIx32 "\n", mcrs);
return false;
}
return true;
Expand Down

0 comments on commit c4015cd

Please sign in to comment.