netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] TUNTAP: Fix wrong debug message
@ 2007-12-25  1:53 Toyo Abe
       [not found] ` <1198550928.19504.1.camel@localhost>
  0 siblings, 1 reply; 3+ messages in thread
From: Toyo Abe @ 2007-12-25  1:53 UTC (permalink / raw)
  To: netdev; +Cc: vtun, maxk

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@miraclelinux.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-25  5:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-25  1:53 [PATCH] TUNTAP: Fix wrong debug message Toyo Abe
     [not found] ` <1198550928.19504.1.camel@localhost>
2007-12-25  3:27   ` Toyo Abe
2007-12-25  5:30     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).