aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/rawsock.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-11-29 14:37:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-30 15:08:36 -0500
commited1e0ad8816389ceefa2d94a9a3d3520088e410f (patch)
treebb15b4ed37d9e43f8ac1501f9fac26a808a36c22 /net/nfc/rawsock.c
parentacda130b0e615596c63640f05febb02d2e681dde (diff)
nfc: Use standard logging styles
Using the normal logging styles is preferred over subsystem specific styles when the subsystem does not take a specific struct. Convert nfc_<level> specific messages to pr_<level> Add newlines to uses. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/rawsock.c')
-rw-r--r--net/nfc/rawsock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c
index ee7b2b365ef2..feb235b2fe1d 100644
--- a/net/nfc/rawsock.c
+++ b/net/nfc/rawsock.c
@@ -21,6 +21,8 @@
21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 */ 22 */
23 23
24#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
25
24#include <net/tcp_states.h> 26#include <net/tcp_states.h>
25#include <linux/nfc.h> 27#include <linux/nfc.h>
26#include <linux/export.h> 28#include <linux/export.h>
@@ -294,7 +296,7 @@ static void rawsock_destruct(struct sock *sk)
294 skb_queue_purge(&sk->sk_receive_queue); 296 skb_queue_purge(&sk->sk_receive_queue);
295 297
296 if (!sock_flag(sk, SOCK_DEAD)) { 298 if (!sock_flag(sk, SOCK_DEAD)) {
297 nfc_err("Freeing alive NFC raw socket %p", sk); 299 pr_err("Freeing alive NFC raw socket %p\n", sk);
298 return; 300 return;
299 } 301 }
300} 302}