show script search dirs in debug log
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 21 Nov 2009 17:30:09 +0000 (09:30 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 21 Nov 2009 17:30:09 +0000 (09:30 -0800)
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 <andreas.fritiofson@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/helper/configuration.c

index 74bcc9b0af949d0fbc745f95f22032a8ec5ac7c7..2ea5da480cb81cc26b2bc95581c5165db1d93d11 100644 (file)
@@ -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)