Skip to content
Permalink
Browse files

bluetooth: host: format specifier alignment

Aligned format specifiers for the Bluetooth Host. Now, the format
specifier matches the variable type.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
  • Loading branch information...
kapi-no authored and carlescufi committed Apr 8, 2019
1 parent 035bc2c commit c5f6e8bed4663b8d7601c1f04d599976fdcffb31
Showing with 4 additions and 3 deletions.
  1. +2 −1 subsys/bluetooth/host/keys.c
  2. +2 −2 subsys/bluetooth/host/mesh/settings.c
@@ -324,7 +324,8 @@ static int keys_set(int argc, char **argv, void *value_ctx)
}

if (settings_val_get_len_cb(value_ctx) != BT_KEYS_STORAGE_LEN) {
BT_ERR("Invalid key length %d != %d", len, BT_KEYS_STORAGE_LEN);
BT_ERR("Invalid key length %d != %zu", len,
BT_KEYS_STORAGE_LEN);
bt_keys_clear(keys);
return -EINVAL;
} else {
@@ -521,7 +521,7 @@ static int mod_set_bind(struct bt_mesh_model *mod, void *val_ctx)
}


BT_DBG("Decoded %u bound keys for model", len / sizeof(mod->keys[0]));
BT_DBG("Decoded %zu bound keys for model", len / sizeof(mod->keys[0]));
return 0;
}

@@ -543,7 +543,7 @@ static int mod_set_sub(struct bt_mesh_model *mod, void *val_ctx)
return len;
}

BT_DBG("Decoded %u subscribed group addresses for model",
BT_DBG("Decoded %zu subscribed group addresses for model",
len / sizeof(mod->groups[0]));
return 0;
}

0 comments on commit c5f6e8b

Please sign in to comment.
You can’t perform that action at this time.