net: Convert printks to pr_<level>
[deliverable/linux.git] / net / ipv4 / raw.c
index ab466305b629bae03bbc44767156d3fb467684cf..bbd604c68e68bd0a4b9a400d3055cb45055a6d42 100644 (file)
@@ -491,11 +491,8 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
                if (msg->msg_namelen < sizeof(*usin))
                        goto out;
                if (usin->sin_family != AF_INET) {
-                       static int complained;
-                       if (!complained++)
-                               printk(KERN_INFO "%s forgot to set AF_INET in "
-                                                "raw sendmsg. Fix it!\n",
-                                                current->comm);
+                       pr_info_once("%s: %s forgot to set AF_INET. Fix it!\n",
+                                    __func__, current->comm);
                        err = -EAFNOSUPPORT;
                        if (usin->sin_family)
                                goto out;
This page took 0.024859 seconds and 5 git commands to generate.