Date: Mon, 11 Sep 2006 07:30:28 GMT From: Alexander Leidinger <Alexander@Leidinger.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/99068: [linux] Linux emulator crashed by java, when calling ioctl(fd,SIOCGIFINDEX,...) Message-ID: <200609110730.k8B7USrP039042@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/99068; it has been noted by GNATS. From: Alexander Leidinger <Alexander@Leidinger.net> To: Marcin Cieslak <saper@SYSTEM.PL> Cc: bug-followup@FreeBSD.org, esepecesito@gmail.com, emulation@FreeBSD.org Subject: Re: kern/99068: [linux] Linux emulator crashed by java, when calling ioctl(fd,SIOCGIFINDEX,...) Date: Mon, 11 Sep 2006 09:29:16 +0200 Quoting Marcin Cieslak <saper@SYSTEM.PL> (from Sun, 10 Sep 2006 22:18:13 +0200): > --- linux_ioctl.c Sun Sep 10 22:05:48 2006 > +++ linux_ioctl.c_new Sun Sep 10 22:08:24 2006 > @@ -2239,6 +2239,17 @@ > return (copyout(&flags, &ifr->ifr_flags, sizeof(flags))); > } > > +static int > +linux_ifindex(struct thread *td, struct ifnet *ifp, struct l_ifreq *ifr) > +{ > +#if DEBUG > + printf("Interface index: %d\n", ifp->if_index); Minor issues: we have a linux-debug-printf-something for such purposes. Please have a look at other places in the linux emulation code where DEBUG is used. And it would be nice if it also tells where this message comes from (function name). Bye, Alexander. -- Max told his friend that he'd just as soon not go hiking in the hills. Said he, "I'm an anti-climb Max." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609110730.k8B7USrP039042>