You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/10/29 19:47:25 UTC

[6/7] incubator-mynewt-larva git commit: Fix warning when compiling console for sim.

Fix warning when compiling console for sim.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/9f16b10f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/9f16b10f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/9f16b10f

Branch: refs/heads/master
Commit: 9f16b10f3834062c52ad37f559d6716568c45158
Parents: 9386f2d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Oct 29 11:26:57 2015 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Oct 29 11:26:57 2015 -0700

----------------------------------------------------------------------
 libs/console/full/src/cons_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/9f16b10f/libs/console/full/src/cons_fmt.c
----------------------------------------------------------------------
diff --git a/libs/console/full/src/cons_fmt.c b/libs/console/full/src/cons_fmt.c
index 6f20390..48676a9 100644
--- a/libs/console/full/src/cons_fmt.c
+++ b/libs/console/full/src/cons_fmt.c
@@ -26,7 +26,7 @@ void console_printf(const char *fmt, ...)
     char buf[CONS_OUTPUT_MAX_LINE];
     int len;
 
-    len = snprintf(buf, sizeof(buf), "%lu:", os_time_get());
+    len = snprintf(buf, sizeof(buf), "%lu:", (unsigned long)os_time_get());
     console_write(buf, len);
 
     va_start(args, fmt);