openocd/src/helper
Jan Matyas a4f8bf7a90 helper/log: Add macros for target-related errors/warnings/...
This commit introduces macros for target related log entries
(error, warning, ...) which is a very common operation in OpenOCD:

* LOG_TARGET_ERROR
* LOG_TARGET_WARNING
* LOG_TARGET_INFO
* LOG_TARGET_DEBUG
* LOG_TARGET_DEBUG_IO

The goal is to have one macro for this common operation and to
make such log entries look the same way - to make it more readable
for humans as well easier for parsing via scripts.

Change-Id: I6166565fc9040b03d3fca5c3aa44a1ccbcf96ad2
Signed-off-by: Jan Matyas <matyas@codasip.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6667
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-11-13 10:51:52 +00:00
..
Makefile.am Makefile: drop warning suppression on win build 2021-08-30 13:52:12 +00:00
align.h helper: add align.h 2021-08-14 13:29:43 +01:00
bin2char.sh helper: fix minor typos 2020-09-05 17:10:54 +01:00
binarybuffer.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
binarybuffer.h Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
bits.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
command.c jimtcl: revert temporary workaround for memory leak in jimtcl 0.80 2021-11-07 22:21:54 +00:00
command.h command: document enum command_mode 2021-10-25 16:10:28 +00:00
configuration.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
configuration.h helper/configuration: free script_search_dirs and config_file_names 2018-03-07 23:47:31 +00:00
fileio.c openocd: manually remove NULL comparisons 2021-07-24 10:38:19 +01:00
fileio.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
jep106.c jep106: use packed jedec manufacturer code 2021-08-22 20:26:06 +00:00
jep106.h jep106: use packed jedec manufacturer code 2021-08-22 20:26:06 +00:00
jep106.inc jep106.inc: Update to revision JEP106BC 2021-09-18 15:27:31 +00:00
jim-nvp.c helper: Remove src/helper from include dirs 2021-10-02 13:18:15 +00:00
jim-nvp.h helper/jim-nvp: comply with coding style [1/2] 2021-06-04 17:40:39 +01:00
list.h helper/list.h: add mention to the example in contrib 2021-06-04 17:41:57 +01:00
log.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
log.h helper/log: Add macros for target-related errors/warnings/... 2021-11-13 10:51:52 +00:00
options.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
replacements.c helper: remove fix for libusb pre-v1.0.9 2021-08-30 13:51:46 +00:00
replacements.h helper: remove fix for libusb pre-v1.0.9 2021-08-30 13:51:46 +00:00
startup.tcl coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
system.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
time_support.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
time_support.h openocd: fix some minor typo 2021-05-22 10:06:51 +01:00
time_support_common.c Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
types.h helper/types: remove type '_Bool' 2021-05-01 13:36:58 +01:00
update_jep106.pl helper: fix minor typos 2020-09-05 17:10:54 +01:00
util.c helper: rename camelcase symbols 2021-07-02 17:10:03 +01:00
util.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00