From owner-freebsd-current@FreeBSD.ORG Sat Jan 3 19:17:30 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40CFB106567D for ; Sat, 3 Jan 2009 19:17:30 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id C768A8FC14 for ; Sat, 3 Jan 2009 19:17:29 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-020-175.pools.arcor-ip.net [88.66.20.175]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1LJC0028gu-000290; Sat, 03 Jan 2009 20:17:28 +0100 Received: (qmail 12819 invoked from network); 3 Jan 2009 19:17:28 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by ns1.laiers.local with SMTP; 3 Jan 2009 19:17:28 -0000 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Sat, 3 Jan 2009 20:17:27 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <20090101183026.GA15385@onelab2.iet.unipi.it> <21267890.post@talk.nabble.com> In-Reply-To: <21267890.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901032017.27608.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18eEOOWGfImczFB4gsEL1LOHHkq9+n9td7g8fy XMJMDkXNw+WZ2sq1Yvw7cC2rolExR/6Wytw8dZHbYem+tSVg// PAjOYMZd8ULE6CcPPgbcw== Cc: dvg_lab Subject: Re: RFC: new utility, kmodpatch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 19:17:30 -0000 On Saturday 03 January 2009 19:47:29 dvg_lab wrote: > Hi, > > I mentioned this utility a couple of months ago, and it's now working > > > so i would like to receive feedback on whether this is good to have > > as part of the system, or just keep it as a port (which is what > > i plan to do by default). > > > > In a nutshell, the kmodpatch utility can print or alter the content > > of device/quirk tables in kernel modules (I think Linux has some > > similar tool, though i don't remember the name -- or perhaps it is > > a feature of insmod ?). > > Can't make it on CURRENT (31.12.2008) amd64 > > dvg-nb# make > cc -O2 -pipe -O1 -Wall -Werror -Wunused -g -I/usr/local/include > -L/usr/local/lib -lkvm kmodpatch.c -o kmodpatch > cc1: warnings being treated as errors > kmodpatch.c: In function 'dump': > kmodpatch.c:234: warning: format '%d' expects type 'int', but argument 3 > has type 'size_t' change %d to %zu > kmodpatch.c:291: warning: format '%016llx' expects type 'long long unsigned > int', but argument 3 has type 'uint64_t' change %016llx to %016jx and cast argument three to uintmax_t > kmodpatch.c: In function 'do_rw': > kmodpatch.c:535: warning: format '%d' expects type 'int', but argument 5 > has type 'size_t' See above %zu > *** Error code 1 > > Stop in /home/dvg/downloads/kmodpatch. > > WBR, > Vyacheslav Druzhinin -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News