Skip to content

Commit

Permalink
helper/log: Add LOG_TARGET_USER()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8661
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
  • Loading branch information
zapb-0 authored and borneoa committed Dec 30, 2024
1 parent 5284a5f commit e4ad10e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helper/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit e4ad10e

Please sign in to comment.