Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934233AbbDWNqJ (ORCPT ); Thu, 23 Apr 2015 09:46:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757733AbbDWNqH (ORCPT ); Thu, 23 Apr 2015 09:46:07 -0400 Date: Thu, 23 Apr 2015 10:45:41 -0300 From: Arnaldo Carvalho de Melo To: Will Deacon Cc: linux-kernel@vger.kernel.org, Namhyung Kim , David Ahern , Jiri Olsa , Joonsoo Kim , Minchan Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: Re: [PATCH] tools: perf: consistently use PRIu64 for printing u64 values Message-ID: <20150423134541.GC14773@redhat.com> References: <1429796437-1790-1-git-send-email-will.deacon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1429796437-1790-1-git-send-email-will.deacon@arm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 25 Em Thu, Apr 23, 2015 at 02:40:37PM +0100, Will Deacon escreveu: > Building the perf tool for 32-bit ARM results in the following build > error due to a combination of an incorrect conversion specifier and > compiling with -Werror: > > builtin-kmem.c: In function ‘print_page_summary’: > builtin-kmem.c:644:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ [-Werror=format=] > nr_alloc_freed, (total_alloc_freed_bytes) / 1024); > ^ > builtin-kmem.c:647:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ [-Werror=format=] > (total_page_alloc_bytes - total_alloc_freed_bytes) / 1024); > ^ > cc1: all warnings being treated as errors > > This patch fixes the problem by consistently using PRIu64 for printing > out u64 values. Thanks, applied to perf/urgent. - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/