From: openocd-gerrit <ope...@us...> - 2025-08-09 15:05:26
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 3061149545b2be806b9a382995a33f5a60af9555 (commit) from 003cb92cd505fee903794281041336e06cfa8c03 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3061149545b2be806b9a382995a33f5a60af9555 Author: Antonio Borneo <bor...@gm...> Date: Fri Aug 1 17:28:40 2025 +0200 flash: at91sam7: align format strings to types Remove the cast and use the correct conversion specifier. Change-Id: Idd9fae8cb8858e1f2f098544eb2eaa80bf0c5597 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/9066 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c index a124e49df..093f7ea3e 100644 --- a/src/flash/nor/at91sam7.c +++ b/src/flash/nor/at91sam7.c @@ -277,7 +277,7 @@ static void at91sam7_set_flash_mode(struct flash_bank *bank, int mode) if (at91sam7_info->mck_freq > 30000000ul) fws = 1; - LOG_DEBUG("fmcn[%i]: %i", bank->bank_number, (int)(fmcn)); + LOG_DEBUG("fmcn[%u]: %" PRIu32, bank->bank_number, fmcn); fmr = fmcn << 16 | fws << 8; target_write_u32(target, mc_fmr[bank->bank_number], fmr); } @@ -291,11 +291,11 @@ static uint32_t at91sam7_wait_status_busy(struct flash_bank *bank, uint32_t wait while ((!((status = at91sam7_get_flash_status(bank->target, bank->bank_number)) & waitbits)) && (timeout-- > 0)) { - LOG_DEBUG("status[%i]: 0x%" PRIx32, (int)bank->bank_number, status); + LOG_DEBUG("status[%u]: 0x%" PRIx32, bank->bank_number, status); alive_sleep(1); } - LOG_DEBUG("status[%i]: 0x%" PRIx32, bank->bank_number, status); + LOG_DEBUG("status[%u]: 0x%" PRIx32, bank->bank_number, status); if (status & 0x0C) { LOG_ERROR("status register: 0x%" PRIx32, status); @@ -319,7 +319,7 @@ static int at91sam7_flash_command(struct flash_bank *bank, uint8_t cmd, uint16_t fcr = (0x5A << 24) | ((pagen&0x3FF) << 8) | cmd; target_write_u32(target, mc_fcr[bank->bank_number], fcr); - LOG_DEBUG("Flash command: 0x%" PRIx32 ", flash bank: %i, page number: %u", + LOG_DEBUG("Flash command: 0x%" PRIx32 ", flash bank: %u, page number: %" PRIu16, fcr, bank->bank_number + 1, pagen); ----------------------------------------------------------------------- Summary of changes: src/flash/nor/at91sam7.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Main OpenOCD repository |