This is an automated email from Gerrit. "zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8661
-- gerrit commit ac74c3f776f2e33f70737cacae847537192705ea Author: Marc Schink <d...@zapb.de> 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 <d...@zapb.de> diff --git a/src/helper/log.h b/src/helper/log.h index dc8df6fbb6..e2bb131ed3 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__) --