summaryrefslogtreecommitdiff
path: root/net/nfc/digital_dep.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-09-20 11:05:48 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-09-25 04:02:32 +0400
commitc5da0e4a35eb1eba0c1593bef4bf2b58d9d50d6b (patch)
tree105725b6dfa76a4deffd6fce0cc4d7b2b0361a3c /net/nfc/digital_dep.c
parent645d5087bd9667ed398bcb4bfd8784e1de1ee693 (diff)
downloadlinux-c5da0e4a35eb1eba0c1593bef4bf2b58d9d50d6b.tar.xz
NFC: digital: Remove PR_ERR and PR_DBG macros
They can be replaced by the standard pr_err and pr_debug one after defining the right pr_fmt macro. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/digital_dep.c')
-rw-r--r--net/nfc/digital_dep.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/net/nfc/digital_dep.c b/net/nfc/digital_dep.c
index 810d00c9cd5d..15f140ae9099 100644
--- a/net/nfc/digital_dep.c
+++ b/net/nfc/digital_dep.c
@@ -13,6 +13,8 @@
*
*/
+#define pr_fmt(fmt) "digital: %s: " fmt, __func__
+
#include "digital.h"
#define DIGITAL_NFC_DEP_FRAME_DIR_OUT 0xD4
@@ -313,7 +315,7 @@ static void digital_in_recv_dep_res(struct nfc_digital_dev *ddev, void *arg,
break;
case DIGITAL_NFC_DEP_PFB_ACK_NACK_PDU:
- PR_ERR("Received a ACK/NACK PDU");
+ pr_err("Received a ACK/NACK PDU");
rc = -EIO;
goto error;
@@ -332,7 +334,7 @@ static void digital_in_recv_dep_res(struct nfc_digital_dev *ddev, void *arg,
}
if (DIGITAL_NFC_DEP_MI_BIT_SET(pfb)) {
- PR_ERR("MI bit set. Chained PDU not supported.");
+ pr_err("MI bit set. Chained PDU not supported.");
rc = -EIO;
goto error;
}
@@ -424,16 +426,16 @@ static void digital_tg_recv_dep_req(struct nfc_digital_dev *ddev, void *arg,
switch (DIGITAL_NFC_DEP_PFB_TYPE(dep_req->pfb)) {
case DIGITAL_NFC_DEP_PFB_I_PDU:
- PR_DBG("DIGITAL_NFC_DEP_PFB_I_PDU");
+ pr_debug("DIGITAL_NFC_DEP_PFB_I_PDU");
ddev->curr_nfc_dep_pni = DIGITAL_NFC_DEP_PFB_PNI(dep_req->pfb);
break;
case DIGITAL_NFC_DEP_PFB_ACK_NACK_PDU:
- PR_ERR("Received a ACK/NACK PDU");
+ pr_err("Received a ACK/NACK PDU");
rc = -EINVAL;
goto exit;
break;
case DIGITAL_NFC_DEP_PFB_SUPERVISOR_PDU:
- PR_ERR("Received a SUPERVISOR PDU");
+ pr_err("Received a SUPERVISOR PDU");
rc = -EINVAL;
goto exit;
break;
@@ -561,7 +563,7 @@ static void digital_tg_recv_psl_req(struct nfc_digital_dev *ddev, void *arg,
rf_tech = NFC_DIGITAL_RF_TECH_424F;
break;
default:
- PR_ERR("Unsuported dsi value %d", dsi);
+ pr_err("Unsuported dsi value %d", dsi);
goto exit;
}