[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1264221641-26193-1-git-send-email-himanshu@symmetricore.com>
Date: Sat, 23 Jan 2010 10:10:41 +0530
From: Himanshu Chauhan <himanshu@...metricore.com>
To: Linux Kernel <linux-kernel@...r.kernel.org>
Cc: greg@...ah.com, Himanshu Chauhan <himanshu@...metricore.com>
Subject: [PATCH] usbip cleanup: Changed current->comm to get_task_comm
Signed-off-by: Himanshu Chauhan <himanshu@...metricore.com>
---
drivers/staging/usbip/usbip_common.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c
index 3367a52..30fdf9d 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -443,6 +443,7 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
struct msghdr msg;
struct kvec iov;
int total = 0;
+ char name[sizeof(current->comm)];
/* for blocks of if (usbip_dbg_flag_xmit) */
char *bp = buf;
@@ -456,11 +457,12 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
return -EINVAL;
}
+ get_task_comm(name, current);
if (usbip_dbg_flag_xmit) {
if (send) {
if (!in_interrupt())
- printk(KERN_DEBUG "%-10s:", current->comm);
+ printk(KERN_DEBUG "%-10s:", name);
else
printk(KERN_DEBUG "interrupt :");
@@ -507,7 +509,7 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
if (usbip_dbg_flag_xmit) {
if (!send) {
if (!in_interrupt())
- printk(KERN_DEBUG "%-10s:", current->comm);
+ printk(KERN_DEBUG "%-10s:", name);
else
printk(KERN_DEBUG "interrupt :");
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists