From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752342AbcF1Iv0 (ORCPT ); Tue, 28 Jun 2016 04:51:26 -0400 Received: from gate.crashing.org ([63.228.1.57]:58294 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751862AbcF1IvZ (ORCPT ); Tue, 28 Jun 2016 04:51:25 -0400 Date: Tue, 28 Jun 2016 02:30:16 -0500 From: Segher Boessenkool To: David Binderman Cc: Michael Ellerman , paulus@samba.org, linuxppc-dev@lists.ozlabs.org, dcb314@hotmail.com, Linux Kernel Mailing List Subject: Re: arch/powerpc/xmon/dis-asm.h: 2 * wrong specifiers ? Message-ID: <20160628073016.GH27655@gate.crashing.org> References: <1467086888.32607.9.camel@ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 28, 2016 at 08:06:56AM +0100, David Binderman wrote: > I think you can also get a similar warning if you tweek the gcc compiler warning > flags. -Wformat=2 maybe. -Wformat=1 (which is enabled by -Wall) already warns for this. warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] Segher