forked from auracaster/openocd
openocd: drop empty string suffix from format strings
Format strings are often split to allow using the conversion specifiers macros from <inttypes.h>. When the format string ends with one of such macros, there is no need to add an empty string "" after the macro. In current code we have 203 cases of empty string present, against 1159 cases of string ending with the macro. Uniform the style across OpenOCD by removing the empty string. Don't modify the files 'angie.c' and 'max32xxx.c' as they are already changed by other independent commits. Change-Id: I23f1120101ce1da67c6578635fc6507a58c803e9 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9065 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
@@ -374,7 +374,7 @@ static int mips32_read_core_reg(struct target *target, unsigned int num)
|
||||
mips32->core_cache->reg_list[num].valid = true;
|
||||
mips32->core_cache->reg_list[num].dirty = false;
|
||||
|
||||
LOG_DEBUG("read core reg %i value 0x%" PRIx64 "", num, reg_value);
|
||||
LOG_DEBUG("read core reg %i value 0x%" PRIx64, num, reg_value);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
@@ -419,7 +419,7 @@ static int mips32_write_core_reg(struct target *target, unsigned int num)
|
||||
mips32->core_regs.gpr[cnum] = (uint32_t)reg_value;
|
||||
}
|
||||
|
||||
LOG_DEBUG("write core reg %i value 0x%" PRIx64 "", num, reg_value);
|
||||
LOG_DEBUG("write core reg %i value 0x%" PRIx64, num, reg_value);
|
||||
mips32->core_cache->reg_list[num].valid = true;
|
||||
mips32->core_cache->reg_list[num].dirty = false;
|
||||
|
||||
@@ -485,7 +485,7 @@ int mips32_arch_state(struct target *target)
|
||||
{
|
||||
struct mips32_common *mips32 = target_to_mips32(target);
|
||||
|
||||
LOG_USER("target halted in %s mode due to %s, pc: 0x%8.8" PRIx32 "",
|
||||
LOG_USER("target halted in %s mode due to %s, pc: 0x%8.8" PRIx32,
|
||||
mips_isa_strings[mips32->isa_mode],
|
||||
debug_reason_name(target),
|
||||
buf_get_u32(mips32->core_cache->reg_list[MIPS32_REGLIST_C0_PC_INDEX].value, 0, 32));
|
||||
|
||||
Reference in New Issue
Block a user