From d70c474c6aebafbf9588ca37c56e91607064c3c5 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 17 Nov 2001 01:20:02 +0000 Subject: [PATCH] Fix printf warnings (int/long) #if 0 around unused ifname_bsd_to_linux() function --- sys/compat/linux/linux_ioctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 54da5857baf1..4e07abb617ba 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1372,7 +1372,7 @@ linux_ifname(struct ifnet *ifp, char *name, size_t size) * bsdname and lxname need to be least IFNAMSIZ bytes long, but * can point to the same buffer. */ - +#if 0 static struct ifnet * ifname_bsd_to_linux(const char *bsdname, char *lxname) { @@ -1398,6 +1398,7 @@ ifname_bsd_to_linux(const char *bsdname, char *lxname) return (ifp); } +#endif /* * Translate a Linux interface name to a FreeBSD interface name, @@ -1768,7 +1769,8 @@ linux_ioctl(struct thread *td, struct linux_ioctl_args *args) #ifdef DEBUG if (ldebug(ioctl)) - printf(ARGS(ioctl, "%d, %04lx, *"), args->fd, args->cmd); + printf(ARGS(ioctl, "%d, %04lx, *"), args->fd, + (unsigned long)args->cmd); #endif fdp = td->td_proc->p_fd;