mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [1/4] incubator-mynewt-larva git commit: Fix some host test project bugs.
Date Tue, 05 Jan 2016 23:14:43 GMT
Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 2fdc71732 -> 6545cc0bb


Fix some host test project bugs.


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/2d071909
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/2d071909
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/2d071909

Branch: refs/heads/master
Commit: 2d0719090a76697e9955469544bd9111c40200d5
Parents: 2fdc717
Author: Christopher Collins <ccollins476ad@gmail.com>
Authored: Tue Jan 5 11:47:42 2016 -0800
Committer: Christopher Collins <ccollins476ad@gmail.com>
Committed: Tue Jan 5 11:47:42 2016 -0800

----------------------------------------------------------------------
 project/centtest/src/main.c | 2 +-
 project/prphtest/src/main.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/2d071909/project/centtest/src/main.c
----------------------------------------------------------------------
diff --git a/project/centtest/src/main.c b/project/centtest/src/main.c
index 42d247f..3b15657 100755
--- a/project/centtest/src/main.c
+++ b/project/centtest/src/main.c
@@ -181,7 +181,7 @@ centtest_print_adv_rpt(struct ble_gap_conn_adv_rpt *adv)
     console_printf("    flags=0x%02x\n", adv->fields.flags);
     console_printf("    name=");
     console_write((char *)adv->fields.name, adv->fields.name_len);
-    console_printf("%s\n");
+    console_printf("\n");
 }
 
 static void

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/2d071909/project/prphtest/src/main.c
----------------------------------------------------------------------
diff --git a/project/prphtest/src/main.c b/project/prphtest/src/main.c
index 92841af..b2a6cb0 100755
--- a/project/prphtest/src/main.c
+++ b/project/prphtest/src/main.c
@@ -241,6 +241,7 @@ prphtest_task_handler(void *arg)
 
     prphtest_register_attrs();
 
+    memset(&fields, 0, sizeof fields);
     fields.name = (uint8_t *)"nimble";
     fields.name_len = 6;
     fields.name_is_complete = 1;


Mime
View raw message