This commit is contained in:
Milanka Ringwald 2015-04-10 23:43:01 +02:00
commit d980f0f442
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ void att_dump_attributes(void){
log_info("Handle: 0x%04x, flags: 0x%04x, uuid: ", it.handle, it.flags);
if (it.flags & ATT_PROPERTY_UUID128){
swap128(it.uuid, uuid128);
printUUID128(uuid128);
log_info(uuid128_to_str(uuid128));
} else {
log_info("%04x", READ_BT_16(it.uuid, 0));
}

View File

@ -176,7 +176,7 @@ void log_key(const char * name, sm_key_t key){
hexdump(key, 16);
}
static char uuid128_to_str_buffer[16+4+1];
static char uuid128_to_str_buffer[32+4+1];
char * uuid128_to_str(uint8_t * uuid){
sprintf(uuid128_to_str_buffer, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
uuid[0], uuid[1], uuid[2], uuid[3], uuid[4], uuid[5], uuid[6], uuid[7],