diff options
author | Joe Perches <joe@perches.com> | 2011-11-29 14:37:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-30 15:08:36 -0500 |
commit | 20c239c1390bd6f3bb389fe1a7e8307f29f52563 (patch) | |
tree | c78b5099bd642482ef69531ba19bbff0ce33e4cf /net/nfc/nci/data.c | |
parent | ed1e0ad8816389ceefa2d94a9a3d3520088e410f (diff) |
nfc: Convert nfc_dbg to pr_debug
Using the standard debugging mechanisms is better than
subsystem specific ones when the subsystem doesn't use
a specific struct.
Coalesce long formats.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nci/data.c')
-rw-r--r-- | net/nfc/nci/data.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/nfc/nci/data.c b/net/nfc/nci/data.c index 7d8a1251c76b..3c5db09520b5 100644 --- a/net/nfc/nci/data.c +++ b/net/nfc/nci/data.c | |||
@@ -42,7 +42,7 @@ void nci_data_exchange_complete(struct nci_dev *ndev, | |||
42 | data_exchange_cb_t cb = ndev->data_exchange_cb; | 42 | data_exchange_cb_t cb = ndev->data_exchange_cb; |
43 | void *cb_context = ndev->data_exchange_cb_context; | 43 | void *cb_context = ndev->data_exchange_cb_context; |
44 | 44 | ||
45 | nfc_dbg("entry, len %d, err %d", ((skb) ? (skb->len) : (0)), err); | 45 | pr_debug("entry, len %d, err %d\n", skb ? skb->len : 0, err); |
46 | 46 | ||
47 | if (cb) { | 47 | if (cb) { |
48 | ndev->data_exchange_cb = NULL; | 48 | ndev->data_exchange_cb = NULL; |
@@ -92,7 +92,7 @@ static int nci_queue_tx_data_frags(struct nci_dev *ndev, | |||
92 | int frag_len; | 92 | int frag_len; |
93 | int rc = 0; | 93 | int rc = 0; |
94 | 94 | ||
95 | nfc_dbg("entry, conn_id 0x%x, total_len %d", conn_id, total_len); | 95 | pr_debug("entry, conn_id 0x%x, total_len %d\n", conn_id, total_len); |
96 | 96 | ||
97 | __skb_queue_head_init(&frags_q); | 97 | __skb_queue_head_init(&frags_q); |
98 | 98 | ||
@@ -121,8 +121,8 @@ static int nci_queue_tx_data_frags(struct nci_dev *ndev, | |||
121 | data += frag_len; | 121 | data += frag_len; |
122 | total_len -= frag_len; | 122 | total_len -= frag_len; |
123 | 123 | ||
124 | nfc_dbg("frag_len %d, remaining total_len %d", | 124 | pr_debug("frag_len %d, remaining total_len %d\n", |
125 | frag_len, total_len); | 125 | frag_len, total_len); |
126 | } | 126 | } |
127 | 127 | ||
128 | /* queue all fragments atomically */ | 128 | /* queue all fragments atomically */ |
@@ -151,7 +151,7 @@ int nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb) | |||
151 | { | 151 | { |
152 | int rc = 0; | 152 | int rc = 0; |
153 | 153 | ||
154 | nfc_dbg("entry, conn_id 0x%x, plen %d", conn_id, skb->len); | 154 | pr_debug("entry, conn_id 0x%x, plen %d\n", conn_id, skb->len); |
155 | 155 | ||
156 | /* check if the packet need to be fragmented */ | 156 | /* check if the packet need to be fragmented */ |
157 | if (skb->len <= ndev->max_data_pkt_payload_size) { | 157 | if (skb->len <= ndev->max_data_pkt_payload_size) { |
@@ -230,19 +230,19 @@ void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb) | |||
230 | { | 230 | { |
231 | __u8 pbf = nci_pbf(skb->data); | 231 | __u8 pbf = nci_pbf(skb->data); |
232 | 232 | ||
233 | nfc_dbg("entry, len %d", skb->len); | 233 | pr_debug("entry, len %d\n", skb->len); |
234 | 234 | ||
235 | nfc_dbg("NCI RX: MT=data, PBF=%d, conn_id=%d, plen=%d", | 235 | pr_debug("NCI RX: MT=data, PBF=%d, conn_id=%d, plen=%d\n", |
236 | nci_pbf(skb->data), | 236 | nci_pbf(skb->data), |
237 | nci_conn_id(skb->data), | 237 | nci_conn_id(skb->data), |
238 | nci_plen(skb->data)); | 238 | nci_plen(skb->data)); |
239 | 239 | ||
240 | /* strip the nci data header */ | 240 | /* strip the nci data header */ |
241 | skb_pull(skb, NCI_DATA_HDR_SIZE); | 241 | skb_pull(skb, NCI_DATA_HDR_SIZE); |
242 | 242 | ||
243 | if (ndev->target_active_prot == NFC_PROTO_MIFARE) { | 243 | if (ndev->target_active_prot == NFC_PROTO_MIFARE) { |
244 | /* frame I/F => remove the status byte */ | 244 | /* frame I/F => remove the status byte */ |
245 | nfc_dbg("NFC_PROTO_MIFARE => remove the status byte"); | 245 | pr_debug("NFC_PROTO_MIFARE => remove the status byte\n"); |
246 | skb_trim(skb, (skb->len - 1)); | 246 | skb_trim(skb, (skb->len - 1)); |
247 | } | 247 | } |
248 | 248 | ||