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:
@@ -473,7 +473,7 @@ static int mips_mips64_set_watchpoint(struct target *target,
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
LOG_DEBUG("wp_num %i bp_value 0x%" PRIx64 "", wp_num, c->bp_value);
|
||||
LOG_DEBUG("wp_num %i bp_value 0x%" PRIx64, wp_num, c->bp_value);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
@@ -642,7 +642,7 @@ static int mips_mips64_resume(struct target *target, bool current,
|
||||
/* Single step past breakpoint at current address */
|
||||
bp = breakpoint_find(target, (uint64_t) resume_pc);
|
||||
if (bp) {
|
||||
LOG_DEBUG("unset breakpoint at 0x%16.16" PRIx64 "",
|
||||
LOG_DEBUG("unset breakpoint at 0x%16.16" PRIx64,
|
||||
bp->address);
|
||||
retval = mips_mips64_unset_breakpoint(target, bp);
|
||||
if (retval != ERROR_OK)
|
||||
@@ -682,7 +682,7 @@ static int mips_mips64_resume(struct target *target, bool current,
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
LOG_DEBUG("target resumed at 0x%" PRIx64 "", resume_pc);
|
||||
LOG_DEBUG("target resumed at 0x%" PRIx64, resume_pc);
|
||||
} else {
|
||||
target->state = TARGET_DEBUG_RUNNING;
|
||||
retval = target_call_event_callbacks(target,
|
||||
@@ -690,7 +690,7 @@ static int mips_mips64_resume(struct target *target, bool current,
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
LOG_DEBUG("target debug resumed at 0x%" PRIx64 "", resume_pc);
|
||||
LOG_DEBUG("target debug resumed at 0x%" PRIx64, resume_pc);
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
@@ -911,7 +911,7 @@ static int mips_mips64_read_memory(struct target *target, uint64_t address,
|
||||
} else
|
||||
t = buffer;
|
||||
|
||||
LOG_DEBUG("address: 0x%16.16" PRIx64 ", size: 0x%8.8" PRIx32 ", count: 0x%8.8" PRIx32 "",
|
||||
LOG_DEBUG("address: 0x%16.16" PRIx64 ", size: 0x%8.8" PRIx32 ", count: 0x%8.8" PRIx32,
|
||||
address, size, count);
|
||||
retval = mips64_pracc_read_mem(ejtag_info, address, size, count,
|
||||
(void *)t);
|
||||
@@ -949,7 +949,7 @@ static int mips_mips64_bulk_write_memory(struct target *target,
|
||||
struct working_area *fast_data_area;
|
||||
int retval;
|
||||
|
||||
LOG_DEBUG("address: " TARGET_ADDR_FMT ", count: 0x%8.8" PRIx32 "",
|
||||
LOG_DEBUG("address: " TARGET_ADDR_FMT ", count: 0x%8.8" PRIx32,
|
||||
address, count);
|
||||
|
||||
if (address & 0x7)
|
||||
@@ -1066,7 +1066,7 @@ static int mips_mips64_write_memory(struct target *target, uint64_t address,
|
||||
buffer = t;
|
||||
}
|
||||
|
||||
LOG_DEBUG("address: 0x%16.16" PRIx64 ", size: 0x%8.8" PRIx32 ", count: 0x%8.8" PRIx32 "",
|
||||
LOG_DEBUG("address: 0x%16.16" PRIx64 ", size: 0x%8.8" PRIx32 ", count: 0x%8.8" PRIx32,
|
||||
address, size, count);
|
||||
|
||||
retval = mips64_pracc_write_mem(ejtag_info, address, size, count,
|
||||
|
||||
Reference in New Issue
Block a user