[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200712250153.lBP1rVXR004756@dhcp-0176.miraclelinux.com>
Date: Tue, 25 Dec 2007 10:53:31 +0900
From: Toyo Abe <tabe@...aclelinux.com>
To: netdev@...r.kernel.org
Cc: vtun@...ice.satix.net, maxk@...lcomm.com
Subject: [PATCH] TUNTAP: Fix wrong debug message
This is a trivial fix of debug message.
When a persist flag is set, the message should say "enabled".
Signed-off-by: Toyo Abe <tabe@...aclelinux.com>
---
drivers/net/tun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 1f76446..e5a3f5d 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -610,7 +610,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
tun->flags &= ~TUN_PERSIST;
DBG(KERN_INFO "%s: persist %s\n",
- tun->dev->name, arg ? "disabled" : "enabled");
+ tun->dev->name, (!arg) ? "disabled" : "enabled");
break;
case TUNSETOWNER:
--
1.5.3.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists