From: Andreas Fritiofson Date: Sat, 21 Nov 2009 17:30:09 +0000 (-0800) Subject: show script search dirs in debug log X-Git-Tag: v0.4.0-rc1~467 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=425e43d9d1f09a4de86eae89c91924ec98ef2de0;p=openocd show script search dirs in debug log Add this to ease debugging why the standard scripts aren't found on the default script search path in some build/install enviroments. Especially on Windows it's not straight forward where openocd actually looks for the scripts. Signed-off-by: Andreas Fritiofson Signed-off-by: David Brownell --- diff --git a/src/helper/configuration.c b/src/helper/configuration.c index 74bcc9b0..2ea5da48 100644 --- a/src/helper/configuration.c +++ b/src/helper/configuration.c @@ -41,6 +41,8 @@ void add_script_search_dir (const char *dir) script_search_dirs[num_script_dirs-1] = strdup(dir); script_search_dirs[num_script_dirs] = NULL; + + LOG_DEBUG("adding %s", dir); } void add_config_command (const char *cfg)