Skip to content

Commit

Permalink
tuntap: log the unsigned informaiton with %u
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jason Wang authored and David S. Miller committed Nov 1, 2012
1 parent 810b6d7 commit 1e58833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,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) {
Expand Down Expand Up @@ -1459,7 +1459,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;

Expand All @@ -1471,7 +1471,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;

Expand Down

0 comments on commit 1e58833

Please sign in to comment.