aboutsummaryrefslogtreecommitdiffstats
path: root/net/wimax/op-msg.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-10-07 16:12:03 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-07 20:28:44 -0400
commit28b7deae75642c51f097391765fd39ff0dd6ce95 (patch)
tree944ac968107870b0c9b1cd1bd4747df0c531f362 /net/wimax/op-msg.c
parent505e907db388185649d93925c9975d0a0704ea64 (diff)
wimax: convert printk to pr_foo()
Use current logging functions and add module name prefix. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wimax/op-msg.c')
-rw-r--r--net/wimax/op-msg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/wimax/op-msg.c b/net/wimax/op-msg.c
index c278b3356f75..54aa146930bd 100644
--- a/net/wimax/op-msg.c
+++ b/net/wimax/op-msg.c
@@ -189,7 +189,7 @@ const void *wimax_msg_data_len(struct sk_buff *msg, size_t *size)
189 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 189 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
190 WIMAX_GNL_MSG_DATA); 190 WIMAX_GNL_MSG_DATA);
191 if (nla == NULL) { 191 if (nla == NULL) {
192 printk(KERN_ERR "Cannot find attribute WIMAX_GNL_MSG_DATA\n"); 192 pr_err("Cannot find attribute WIMAX_GNL_MSG_DATA\n");
193 return NULL; 193 return NULL;
194 } 194 }
195 *size = nla_len(nla); 195 *size = nla_len(nla);
@@ -211,7 +211,7 @@ const void *wimax_msg_data(struct sk_buff *msg)
211 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 211 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
212 WIMAX_GNL_MSG_DATA); 212 WIMAX_GNL_MSG_DATA);
213 if (nla == NULL) { 213 if (nla == NULL) {
214 printk(KERN_ERR "Cannot find attribute WIMAX_GNL_MSG_DATA\n"); 214 pr_err("Cannot find attribute WIMAX_GNL_MSG_DATA\n");
215 return NULL; 215 return NULL;
216 } 216 }
217 return nla_data(nla); 217 return nla_data(nla);
@@ -232,7 +232,7 @@ ssize_t wimax_msg_len(struct sk_buff *msg)
232 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 232 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
233 WIMAX_GNL_MSG_DATA); 233 WIMAX_GNL_MSG_DATA);
234 if (nla == NULL) { 234 if (nla == NULL) {
235 printk(KERN_ERR "Cannot find attribute WIMAX_GNL_MSG_DATA\n"); 235 pr_err("Cannot find attribute WIMAX_GNL_MSG_DATA\n");
236 return -EINVAL; 236 return -EINVAL;
237 } 237 }
238 return nla_len(nla); 238 return nla_len(nla);
@@ -343,8 +343,7 @@ int wimax_gnl_doit_msg_from_user(struct sk_buff *skb, struct genl_info *info)
343 d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info); 343 d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
344 result = -ENODEV; 344 result = -ENODEV;
345 if (info->attrs[WIMAX_GNL_MSG_IFIDX] == NULL) { 345 if (info->attrs[WIMAX_GNL_MSG_IFIDX] == NULL) {
346 printk(KERN_ERR "WIMAX_GNL_MSG_FROM_USER: can't find IFIDX " 346 pr_err("WIMAX_GNL_MSG_FROM_USER: can't find IFIDX attribute\n");
347 "attribute\n");
348 goto error_no_wimax_dev; 347 goto error_no_wimax_dev;
349 } 348 }
350 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_MSG_IFIDX]); 349 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_MSG_IFIDX]);