From owner-freebsd-current@FreeBSD.ORG Sat Jan 3 20:07:53 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 938D9106564A for ; Sat, 3 Jan 2009 20:07:53 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 7046F8FC08 for ; Sat, 3 Jan 2009 20:07:53 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LJCmm-0006BQ-Ed for freebsd-current@freebsd.org; Sat, 03 Jan 2009 12:07:52 -0800 Message-ID: <21268756.post@talk.nabble.com> Date: Sat, 3 Jan 2009 12:07:52 -0800 (PST) From: Vyacheslav Druzhinin To: freebsd-current@freebsd.org In-Reply-To: <200901032017.27608.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dvg@tjc.ru References: <20090101183026.GA15385@onelab2.iet.unipi.it> <21267890.post@talk.nabble.com> <200901032017.27608.max@love2party.net> X-Mailman-Approved-At: Sat, 03 Jan 2009 22:20:45 +0000 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 20:07:53 -0000 Max Laier wrote: > > 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. > > Thanks a lot, Max, it works for me. WBR, dvg_lab -- View this message in context: http://www.nabble.com/RFC%3A-new-utility%2C-kmodpatch-tp21243504p21268756.html Sent from the freebsd-current mailing list archive at Nabble.com.