use bd_addr_to_string to fix address output

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-25 08:02:40 +00:00
parent 4e4ed2b0fc
commit dcc34cfc51

View File

@ -68,8 +68,7 @@ void central_device_db_remove(int index){
int central_device_db_add(int addr_type, bd_addr_t addr, sm_key_t irk, sm_key_t csrk){
if (central_devices_count >= CENTRAL_DEVICE_MEMORY_SIZE) return -1;
printf("Central Device DB adding type %u - ", addr_type);
print_bd_addr(addr);
printf("Central Device DB adding type %u - %s\n", addr_type, bd_addr_to_str(addr));
print_key("irk", irk);
print_key("csrk", csrk);