summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 13:31:37 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 13:31:37 +0000
commit2c3f0ebae9499a70314ba4520099d0006eb8e7fe (patch)
tree301950e90806063d3eb72909525387d0a9ae7c30 /src/helper
parent60ba4476dfef5fae48b85d54e376a3ca27442113 (diff)
downloadopenocd_libswd-2c3f0ebae9499a70314ba4520099d0006eb8e7fe.tar.gz
openocd_libswd-2c3f0ebae9499a70314ba4520099d0006eb8e7fe.tar.bz2
openocd_libswd-2c3f0ebae9499a70314ba4520099d0006eb8e7fe.tar.xz
openocd_libswd-2c3f0ebae9499a70314ba4520099d0006eb8e7fe.zip
- remove build warning from keep_alive
- remove surplus linefeeds git-svn-id: svn://svn.berlios.de/openocd/trunk@831 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/log.c2
-rw-r--r--src/helper/time_support.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/helper/log.c b/src/helper/log.c
index 0a416244..ca9f0a7b 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -356,7 +356,7 @@ void keep_alive()
current_time=timeval_ms();
if (current_time-last_time>1000)
{
- LOG_WARNING("keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (%d)", current_time-last_time);
+ LOG_WARNING("keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (%lld)", current_time-last_time);
last_time=current_time;
} else if (current_time-last_time>500)
{
diff --git a/src/helper/time_support.c b/src/helper/time_support.c
index e97993be..06c10828 100644
--- a/src/helper/time_support.c
+++ b/src/helper/time_support.c
@@ -110,9 +110,6 @@ int duration_stop_measure(duration_t *duration, char **text)
return ERROR_OK;
}
-
-
-
long long timeval_ms()
{
struct timeval now;