Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756061Ab2J2Fqp (ORCPT ); Mon, 29 Oct 2012 01:46:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6075 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754697Ab2J2FoG (ORCPT ); Mon, 29 Oct 2012 01:44:06 -0400 From: Jason Wang To: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com Cc: maxk@qualcomm.com, haixiao@juniper.net, ernesto.martin@viasat.com, krkumar2@in.ibm.com, edumazet@google.com, Jason Wang Subject: [net-next v4 1/7] tuntap: log the unsigned informaiton with %u Date: Mon, 29 Oct 2012 13:35:58 +0800 Message-Id: <1351488964-11109-3-git-send-email-jasowang@redhat.com> In-Reply-To: <1351488964-11109-1-git-send-email-jasowang@redhat.com> References: <1351488964-11109-1-git-send-email-jasowang@redhat.com> To: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1354 Lines: 44 Signed-off-by: Jason Wang --- drivers/net/tun.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 0873cdc..ef13cf0 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1422,7 +1422,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, if (!tun) goto unlock; - tun_debug(KERN_INFO, tun, "tun_chr_ioctl cmd %d\n", cmd); + tun_debug(KERN_INFO, tun, "tun_chr_ioctl cmd %u\n", cmd); ret = 0; switch (cmd) { @@ -1462,7 +1462,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, break; } tun->owner = owner; - tun_debug(KERN_INFO, tun, "owner set to %d\n", + tun_debug(KERN_INFO, tun, "owner set to %u\n", from_kuid(&init_user_ns, tun->owner)); break; @@ -1474,7 +1474,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, break; } tun->group = group; - tun_debug(KERN_INFO, tun, "group set to %d\n", + tun_debug(KERN_INFO, tun, "group set to %u\n", from_kgid(&init_user_ns, tun->group)); break; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/