summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2017-06-06 12:31:58 +0530
committerPrasanna Kumar Kalever <pkalever@redhat.com>2017-06-06 10:00:39 +0000
commit4b128f2ff635e4381bc310663da9f1c73b28e76e (patch)
tree47b9ad4027512f9bc48c70966ddf0412f14d2826 /utils
parent8169bb6a4f26bd982aa34d1ce5954a2b372f6532 (diff)
Fix compiler warnings
Change-Id: I9dd396737a6719fe3828ec3e9c26bfd8aa1da238 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils.c b/utils/utils.c
index ce93f87..4a4960f 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -162,7 +162,7 @@ logTimeNow(char *buf, size_t bufSize)
if (tv.tv_sec && gmtime_r(&tv.tv_sec, &tm) != NULL) {
strftime (buf, bufSize, "%Y-%m-%d %H:%M:%S", &tm);
- snprintf (buf + strlen(buf), bufSize - strlen(buf), ".%06d", tv.tv_usec);
+ snprintf (buf + strlen(buf), bufSize - strlen(buf), ".%06ld", tv.tv_usec);
return;
}