diff options
author | Joe Perches <joe@perches.com> | 2011-11-29 14:37:32 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-30 15:08:36 -0500 |
commit | ed1e0ad8816389ceefa2d94a9a3d3520088e410f (patch) | |
tree | bb15b4ed37d9e43f8ac1501f9fac26a808a36c22 /net/nfc/nci/data.c | |
parent | acda130b0e615596c63640f05febb02d2e681dde (diff) |
nfc: Use standard logging styles
Using the normal logging styles is preferred over
subsystem specific styles when the subsystem does
not take a specific struct.
Convert nfc_<level> specific messages to pr_<level>
Add newlines to uses.
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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/nfc/nci/data.c b/net/nfc/nci/data.c index 511fb96e21bc..7d8a1251c76b 100644 --- a/net/nfc/nci/data.c +++ b/net/nfc/nci/data.c | |||
@@ -21,6 +21,8 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
25 | |||
24 | #include <linux/types.h> | 26 | #include <linux/types.h> |
25 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
26 | #include <linux/wait.h> | 28 | #include <linux/wait.h> |
@@ -49,7 +51,7 @@ void nci_data_exchange_complete(struct nci_dev *ndev, | |||
49 | /* forward skb to nfc core */ | 51 | /* forward skb to nfc core */ |
50 | cb(cb_context, skb, err); | 52 | cb(cb_context, skb, err); |
51 | } else if (skb) { | 53 | } else if (skb) { |
52 | nfc_err("no rx callback, dropping rx data..."); | 54 | pr_err("no rx callback, dropping rx data...\n"); |
53 | 55 | ||
54 | /* no waiting callback, free skb */ | 56 | /* no waiting callback, free skb */ |
55 | kfree_skb(skb); | 57 | kfree_skb(skb); |
@@ -161,7 +163,7 @@ int nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb) | |||
161 | /* fragment packet and queue the fragments */ | 163 | /* fragment packet and queue the fragments */ |
162 | rc = nci_queue_tx_data_frags(ndev, conn_id, skb); | 164 | rc = nci_queue_tx_data_frags(ndev, conn_id, skb); |
163 | if (rc) { | 165 | if (rc) { |
164 | nfc_err("failed to fragment tx data packet"); | 166 | pr_err("failed to fragment tx data packet\n"); |
165 | goto free_exit; | 167 | goto free_exit; |
166 | } | 168 | } |
167 | } | 169 | } |
@@ -191,7 +193,7 @@ static void nci_add_rx_data_frag(struct nci_dev *ndev, | |||
191 | 193 | ||
192 | /* first, make enough room for the already accumulated data */ | 194 | /* first, make enough room for the already accumulated data */ |
193 | if (skb_cow_head(skb, reassembly_len)) { | 195 | if (skb_cow_head(skb, reassembly_len)) { |
194 | nfc_err("error adding room for accumulated rx data"); | 196 | pr_err("error adding room for accumulated rx data\n"); |
195 | 197 | ||
196 | kfree_skb(skb); | 198 | kfree_skb(skb); |
197 | skb = 0; | 199 | skb = 0; |