X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Flog.c;h=c603c7e18cc5e3d9dab5113cc8122cb2ee259318;hp=b42bd9ebc6630f31190cfdabb9e952acd744421f;hb=4e7ec0893969bda2ee77cb89617f909a45e8ff0f;hpb=ca805a472ccc3daf262ff67f0a87ca2b419ca020 diff --git a/src/helper/log.c b/src/helper/log.c index b42bd9ebc6..c603c7e18c 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -27,6 +27,8 @@ #include "config.h" #endif +#include "replacements.h" + #include "log.h" #include "configuration.h" #include "time_support.h" @@ -36,6 +38,7 @@ #include #include #include +#include #include #define PRINT_MEM() 0 @@ -386,7 +389,7 @@ void keep_alive() current_time=timeval_ms(); if (current_time-last_time>1000) { - LOG_WARNING("BUG: keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (%lld)", current_time-last_time); + LOG_WARNING("keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (%lld). Workaround: increase \"set remotetimeout\" in GDB", current_time-last_time); } if (current_time-last_time>500) {