diff options
author | Joe Perches <joe@perches.com> | 2010-09-05 17:31:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-06 21:48:43 -0400 |
commit | b31fa5bad576cd8180a5ad70c648333b44320d44 (patch) | |
tree | b31239e8828e7e5b36ef85a0715ababc4f556e42 /net/caif/cfrfml.c | |
parent | a0ece28539d49c9bdcc6da0bbb26771dceb57581 (diff) |
net/caif: Use pr_fmt
This patch standardizes caif message logging prefixes.
Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__
Add missing "\n"s to some logging messages
Convert pr_warning to pr_warn
This changes the logging message prefix from CAIF: to caif:
for all uses but caif_socket.c and chnl_net.c. Those now use
their filename without extension.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cfrfml.c')
-rw-r--r-- | net/caif/cfrfml.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index eb1602022ac0..6acaeba20603 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c | |||
@@ -4,6 +4,8 @@ | |||
4 | * License terms: GNU General Public License (GPL) version 2 | 4 | * License terms: GNU General Public License (GPL) version 2 |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ | ||
8 | |||
7 | #include <linux/stddef.h> | 9 | #include <linux/stddef.h> |
8 | #include <linux/spinlock.h> | 10 | #include <linux/spinlock.h> |
9 | #include <linux/slab.h> | 11 | #include <linux/slab.h> |
@@ -48,7 +50,7 @@ struct cflayer *cfrfml_create(u8 channel_id, struct dev_info *dev_info, | |||
48 | kzalloc(sizeof(struct cfrfml), GFP_ATOMIC); | 50 | kzalloc(sizeof(struct cfrfml), GFP_ATOMIC); |
49 | 51 | ||
50 | if (!this) { | 52 | if (!this) { |
51 | pr_warning("CAIF: %s(): Out of memory\n", __func__); | 53 | pr_warn("Out of memory\n"); |
52 | return NULL; | 54 | return NULL; |
53 | } | 55 | } |
54 | 56 | ||
@@ -178,9 +180,7 @@ out: | |||
178 | cfpkt_destroy(rfml->incomplete_frm); | 180 | cfpkt_destroy(rfml->incomplete_frm); |
179 | rfml->incomplete_frm = NULL; | 181 | rfml->incomplete_frm = NULL; |
180 | 182 | ||
181 | pr_info("CAIF: %s(): " | 183 | pr_info("Connection error %d triggered on RFM link\n", err); |
182 | "Connection error %d triggered on RFM link\n", | ||
183 | __func__, err); | ||
184 | 184 | ||
185 | /* Trigger connection error upon failure.*/ | 185 | /* Trigger connection error upon failure.*/ |
186 | layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, | 186 | layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, |
@@ -280,9 +280,7 @@ static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) | |||
280 | out: | 280 | out: |
281 | 281 | ||
282 | if (err != 0) { | 282 | if (err != 0) { |
283 | pr_info("CAIF: %s(): " | 283 | pr_info("Connection error %d triggered on RFM link\n", err); |
284 | "Connection error %d triggered on RFM link\n", | ||
285 | __func__, err); | ||
286 | /* Trigger connection error upon failure.*/ | 284 | /* Trigger connection error upon failure.*/ |
287 | 285 | ||
288 | layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, | 286 | layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, |