From owner-freebsd-current@FreeBSD.ORG Sun Jun 21 21:34:39 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 22CF31065672 for ; Sun, 21 Jun 2009 21:34:39 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com [209.85.218.215]) by mx1.freebsd.org (Postfix) with ESMTP id A5C1B8FC0C for ; Sun, 21 Jun 2009 21:34:38 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: by bwz11 with SMTP id 11so555981bwz.43 for ; Sun, 21 Jun 2009 14:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=9xYLQydWezRE3l+79racjMSSH7ICy9g8W75OvypeUqw=; b=wiwjMjRZxWDgkADE6edYxqR8c/CKRttNwp9rXRcKABQe69h8WFbLYW3562vlBQ0FLl giJtTcVxIuAhIozDqwkPK3GXSejhFjrVckQkoTzT/g2X6zyNJzWEjtWV9C8dtzXR602S JfRjRqM6W7HJZ0lThE3HKWb2dJx0PPUgtsqM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=cW9H1bYtmfHzZWUnmjomzualCfS9Vlrr0wULM6gLqIWz8QfrdtPtB4Bn9mqGrzBh+1 l2iAO7vpNBXYE7MUHLI1CDc7UrBJSvNzyP4Uc8cqRPayWCPXxDRU0/Sq0UKvbdg9EEw/ dhfokinArXio63rtxn7c8FU0g8gGoC/yYmnBQ= MIME-Version: 1.0 Received: by 10.204.65.65 with SMTP id h1mr5395822bki.26.1245620077496; Sun, 21 Jun 2009 14:34:37 -0700 (PDT) Date: Sun, 21 Jun 2009 23:34:37 +0200 Message-ID: From: Pawel Worach To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: [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: Sun, 21 Jun 2009 21:34:39 -0000 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); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ Index: usr.sbin/wpa/ndis_events/ndis_events.c =================================================================== --- usr.sbin/wpa/ndis_events/ndis_events.c (revision 193093) +++ usr.sbin/wpa/ndis_events/ndis_events.c (working copy) @@ -265,7 +265,7 @@ usage(progname) char *progname; { - fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname); + fprintf(stderr, "Usage: %s [-a] [-d] [-v]\n", progname); exit(1); } -- Pawel