Make errors from plugins follow the same message convention.
return err;
fail:
- near_error("ndef parsing failed (%d)", err);
+ near_error("ndef parsing failed %d", err);
handover_close(client_fd, 0);
ndef = g_hash_table_lookup(hr_ndef_hash, GINT_TO_POINTER(client_fd));
if (ndef == NULL) {
- near_error("hr_ndef should exist !!!");
+ near_error("hr_ndef should exist");
return FALSE;
}
break;
default:
- DBG("Unknown TAG Type 2 subtype (%d)", tgt_subtype);
+ DBG("Unknown Tag Type 2 subtype %d", tgt_subtype);
err = -1;
break;
}
tgt_subtype = near_tag_get_subtype(adapter_idx, target_idx);
if (tgt_subtype != NEAR_TAG_NFC_T2_MIFARE_ULTRALIGHT) {
- DBG("Unknown Tag Type 2 subtype (%d)", tgt_subtype);
+ DBG("Unknown Tag Type 2 subtype %d", tgt_subtype);
return -1;
}
tgt_subtype = near_tag_get_subtype(adapter_idx, target_idx);
if (tgt_subtype != NEAR_TAG_NFC_T2_MIFARE_ULTRALIGHT) {
- DBG("Unknown Tag Type 2 subtype (%d)", tgt_subtype);
+ DBG("Unknown Tag Type 2 subtype %d", tgt_subtype);
return -1;
}
int err = 0;
struct type3_cmd cmd;
- DBG(" length: %d", length);
+ DBG("length: %d", length);
if (length < 0) {
err = -EIO;
struct type3_cmd cmd;
uint16_t system_code;
- DBG(" length: %d", length);
+ DBG("length: %d", length);
if (length < 0) {
err = -EIO;
/* TODO 5.1.1: TLV blocks can be zero, one or more... */
/* TODO 5.1.2: Must ignore proprietary blocks (x05)... */
if (read_cc->tlv_fc.tag != 0x4) {
- DBG("NDEF File Control tag not found !");
+ DBG("NDEF File Control tag not found");
err = -EINVAL;
goto out_err;
}