From: openocd-gerrit <ope...@us...> - 2024-12-30 15:57:37
|
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 e4ad10e0a1c9ea81279d551076c83c7da932def4 (commit) from 5284a5f3eca63099fc0f3e19e69d1c55a99b214b (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 e4ad10e0a1c9ea81279d551076c83c7da932def4 Author: Marc Schink <de...@za...> Date: Tue Oct 22 16:36:15 2024 +0200 helper/log: Add LOG_TARGET_USER() Add a target-related log function for user messages as it already exists for other log levels. Change-Id: I9076677d6451b900332583e748bab3f83df56d3b Signed-off-by: Marc Schink <de...@za...> Reviewed-on: https://review.openocd.org/c/openocd/+/8661 Reviewed-by: Antonio Borneo <bor...@gm...> Tested-by: jenkins diff --git a/src/helper/log.h b/src/helper/log.h index dc8df6fbb..e2bb131ed 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -152,6 +152,9 @@ extern int debug_level; #define LOG_TARGET_INFO(target, fmt_str, ...) \ LOG_INFO("[%s] " fmt_str, target_name(target), ##__VA_ARGS__) +#define LOG_TARGET_USER(target, fmt_str, ...) \ + LOG_USER("[%s] " fmt_str, target_name(target), ##__VA_ARGS__) + #define LOG_TARGET_WARNING(target, fmt_str, ...) \ LOG_WARNING("[%s] " fmt_str, target_name(target), ##__VA_ARGS__) ----------------------------------------------------------------------- Summary of changes: src/helper/log.h | 3 +++ 1 file changed, 3 insertions(+) hooks/post-receive -- Main OpenOCD repository |