for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i)
if (rfc_slots[i].id == id) return &rfc_slots[i];
- LOG_ERROR(LOG_TAG, "%s unable to find RFCOMM slot id: %d", __func__, id);
+ LOG_ERROR(LOG_TAG, "%s unable to find RFCOMM slot id: %u", __func__, id);
return NULL;
}
break;
default:
- LOG_ERROR(LOG_TAG, "%s unhandled event %d, slot id: %zi", __func__, event,
+ LOG_ERROR(LOG_TAG, "%s unhandled event %d, slot id: %u", __func__, event,
rfcomm_slot_id);
break;
}