From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 11 07:29:34 2006 Return-Path: X-Original-To: emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73D8C16A51A; Mon, 11 Sep 2006 07:29:34 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7532743D45; Mon, 11 Sep 2006 07:29:33 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E294.dip.t-dialin.net [84.165.226.148]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8B77tde085733; Mon, 11 Sep 2006 09:07:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8B7TRTh002975; Mon, 11 Sep 2006 09:29:27 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 11 Sep 2006 09:29:16 +0200 Message-ID: <20060911092916.24p6eny5ko04ckwo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 11 Sep 2006 09:29:16 +0200 From: Alexander Leidinger To: Marcin Cieslak References: <45047305.7090301@SYSTEM.PL> In-Reply-To: <45047305.7090301@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@FreeBSD.org, esepecesito@gmail.com, bug-followup@FreeBSD.org Subject: Re: kern/99068: [linux] Linux emulator crashed by java, when calling ioctl(fd,SIOCGIFINDEX,...) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 07:29:34 -0000 Quoting Marcin Cieslak (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