lkml.org 
[lkml]   [2010]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] usbip cleanup: Changed current->comm to get_task_comm
Date
Signed-off-by: Himanshu Chauhan <himanshu@symmetricore.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


\
 
 \ /
  Last update: 2010-01-23 05:47    [W:2.305 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site