From owner-freebsd-current@FreeBSD.ORG Tue Jun 23 05:52:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620051065674 for ; Tue, 23 Jun 2009 05:52:07 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (cl-2958.ham-01.de.sixxs.net [IPv6:2001:6f8:900:b8d::2]) by mx1.freebsd.org (Postfix) with ESMTP id DFB548FC13 for ; Tue, 23 Jun 2009 05:52:06 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.14.3/8.14.3) with ESMTP id n5N5q55E042845; Tue, 23 Jun 2009 09:52:05 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Tue, 23 Jun 2009 09:52:05 +0400 (MSD) From: Maxim Konovalov To: Pawel Worach In-Reply-To: Message-ID: <20090623095145.B1156@mp2.macomnet.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: current@freebsd.org Subject: Re: [patch] trivial warning fix for ndis_events 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: Tue, 23 Jun 2009 05:52:07 -0000 On Sun, 21 Jun 2009, 23:34+0200, Pawel Worach wrote: > Hi, > > Here is a trival patch to fix the format string to match the data > argument in ndis_events. > > $ clang -O2 -pipe -c ndis_events.c > ndis_events.c:268:57: warning: more data arguments than '%' conversions > [-Wformat-extra-args] > fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname); > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ > I've just removed the last argument. Thanks for the patch. -- Maxim Konovalov