aboutsummaryrefslogtreecommitdiffstats
path: root/net/wimax/stack.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/stack.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/stack.c')
-rw-r--r--net/wimax/stack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/wimax/stack.c b/net/wimax/stack.c
index ec8b577db135..3f816e2971ee 100644
--- a/net/wimax/stack.c
+++ b/net/wimax/stack.c
@@ -191,8 +191,8 @@ void __check_new_state(enum wimax_st old_state, enum wimax_st new_state,
191 unsigned int allowed_states_bm) 191 unsigned int allowed_states_bm)
192{ 192{
193 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { 193 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) {
194 printk(KERN_ERR "SW BUG! Forbidden state change %u -> %u\n", 194 pr_err("SW BUG! Forbidden state change %u -> %u\n",
195 old_state, new_state); 195 old_state, new_state);
196 } 196 }
197} 197}
198 198
@@ -602,8 +602,7 @@ int __init wimax_subsys_init(void)
602 wimax_gnl_ops, 602 wimax_gnl_ops,
603 wimax_gnl_mcgrps); 603 wimax_gnl_mcgrps);
604 if (unlikely(result < 0)) { 604 if (unlikely(result < 0)) {
605 printk(KERN_ERR "cannot register generic netlink family: %d\n", 605 pr_err("cannot register generic netlink family: %d\n", result);
606 result);
607 goto error_register_family; 606 goto error_register_family;
608 } 607 }
609 608