diff options
author | Jason Wang <jasowang@redhat.com> | 2012-10-31 15:45:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 11:14:06 -0400 |
commit | 1e5883382c3287a61aeebc33a301fd50f3a1005b (patch) | |
tree | ccda8bfc78f66d7e989c7ec12ab88adf0b883238 /drivers/net/tun.c | |
parent | 810b6d7638a288216f99bd190470d67061c8bd88 (diff) |
tuntap: log the unsigned informaiton with %u
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | 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 315751965f35..f830b1be4c57 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1419,7 +1419,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, | |||
1419 | if (!tun) | 1419 | if (!tun) |
1420 | goto unlock; | 1420 | goto unlock; |
1421 | 1421 | ||
1422 | tun_debug(KERN_INFO, tun, "tun_chr_ioctl cmd %d\n", cmd); | 1422 | tun_debug(KERN_INFO, tun, "tun_chr_ioctl cmd %u\n", cmd); |
1423 | 1423 | ||
1424 | ret = 0; | 1424 | ret = 0; |
1425 | switch (cmd) { | 1425 | switch (cmd) { |
@@ -1459,7 +1459,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, | |||
1459 | break; | 1459 | break; |
1460 | } | 1460 | } |
1461 | tun->owner = owner; | 1461 | tun->owner = owner; |
1462 | tun_debug(KERN_INFO, tun, "owner set to %d\n", | 1462 | tun_debug(KERN_INFO, tun, "owner set to %u\n", |
1463 | from_kuid(&init_user_ns, tun->owner)); | 1463 | from_kuid(&init_user_ns, tun->owner)); |
1464 | break; | 1464 | break; |
1465 | 1465 | ||
@@ -1471,7 +1471,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, | |||
1471 | break; | 1471 | break; |
1472 | } | 1472 | } |
1473 | tun->group = group; | 1473 | tun->group = group; |
1474 | tun_debug(KERN_INFO, tun, "group set to %d\n", | 1474 | tun_debug(KERN_INFO, tun, "group set to %u\n", |
1475 | from_kgid(&init_user_ns, tun->group)); | 1475 | from_kgid(&init_user_ns, tun->group)); |
1476 | break; | 1476 | break; |
1477 | 1477 | ||