syslogd: Fixed time_t print format needed to support SDX12 toolchain
Change-Id: Ie4d7851fc5ed202d9860747ccaf99ca02f977277
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 6c43d2d..a1a71f4 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -926,7 +926,7 @@
/* TODO: maybe stuff cStore directly to avoid parsing */
/* maybe EOR isn't needed because internal doesn't have length limits? */
/* if we unlimit internal, then sending to remote will truncate even more (maybe could fragment) */
- sprintf(G.printbuf, "%lld %s %s\x1e\n", spec.tv_sec, res, msg);
+ sprintf(G.printbuf, "%lld %s %s\x1e\n", (long long int)spec.tv_sec, res, msg);
}
/* Log message locally (to file or shared mem) */