You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/08 21:20:11 UTC

[24/50] [abbrv] incubator-mynewt-core git commit: bletest; printf string was not working for some native targets..

bletest; printf string was not working for some native targets..


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

Branch: refs/heads/master
Commit: fd0a8993b4b9557d0baf9bd2562a8e6ab1e40ebb
Parents: 7dbc0d0
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Jun 24 17:32:03 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Jun 24 17:32:03 2016 -0700

----------------------------------------------------------------------
 apps/bletest/src/main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fd0a8993/apps/bletest/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletest/src/main.c b/apps/bletest/src/main.c
index fa32f89..e132f32 100755
--- a/apps/bletest/src/main.c
+++ b/apps/bletest/src/main.c
@@ -922,8 +922,11 @@ bletest_task_handler(void *arg)
     /* Read unique HW id */
     rc = bsp_hw_id((void *)&g_bletest_hw_id[0], sizeof(g_bletest_hw_id));
     assert(rc == 16);
-    console_printf("HW id=%04lx%04lx%04lx%04lx\n", g_bletest_hw_id[0],
-                   g_bletest_hw_id[1], g_bletest_hw_id[2], g_bletest_hw_id[3]);
+    console_printf("HW id=%04x%04x%04x%04x\n",
+                   (unsigned int)g_bletest_hw_id[0],
+                   (unsigned int)g_bletest_hw_id[1],
+                   (unsigned int)g_bletest_hw_id[2],
+                   (unsigned int)g_bletest_hw_id[3]);
 
     /* Set the event mask we want to display */
     event_mask = 0x7FF;