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/06/17 04:04:03 UTC

[3/9] incubator-mynewt-core git commit: BLE Host - Deal with va_args bug for master_id log

BLE Host - Deal with va_args bug for master_id log


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

Branch: refs/heads/develop
Commit: cda2363f16535c903c15063bd33006a247e1c61a
Parents: 24c093c
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Jun 16 20:47:32 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Jun 16 20:49:26 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/ble_sm_cmd.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/cda2363f/net/nimble/host/src/ble_sm_cmd.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm_cmd.c b/net/nimble/host/src/ble_sm_cmd.c
index 6ff4806..ebb1e54 100644
--- a/net/nimble/host/src/ble_sm_cmd.c
+++ b/net/nimble/host/src/ble_sm_cmd.c
@@ -416,7 +416,11 @@ done:
 void
 ble_sm_master_id_log(struct ble_sm_master_id *cmd)
 {
-    BLE_HS_LOG(DEBUG, "ediv=0x%04x rand=0x%016llx", cmd->ediv, cmd->rand_val);
+    /* These get logged separately to accommodate a bug in the va_args
+     * implementation related to 64-bit integers.
+     */
+    BLE_HS_LOG(DEBUG, "ediv=0x%04x ", cmd->ediv);
+    BLE_HS_LOG(DEBUG, "rand=0x%016llx", cmd->rand_val);
 }
 
 void