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 <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8661 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
parent
5284a5f3ec
commit
e4ad10e0a1
|
@ -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__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue