diff options
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, |