From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753236AbbCQL5Y (ORCPT ); Tue, 17 Mar 2015 07:57:24 -0400 Received: from [119.145.14.65] ([119.145.14.65]:58313 "EHLO szxga02-in.huawei.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932167AbbCQL5O (ORCPT ); Tue, 17 Mar 2015 07:57:14 -0400 From: He Kuang To: , CC: , , Subject: [PATCH] perf tools: Fix a compiling error in probe-event.c for 32 bits machine Date: Tue, 17 Mar 2015 19:51:55 +0800 Message-ID: <1426593115-27372-1-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 2.2.0.33.gc18b867 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.189] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 32 bits machine, there is a compile error: CC util/probe-event.o util/probe-event.c: In function 'find_alternative_probe_point': util/probe-event.c:320:2: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'u64' [-Werror=format] cc1: all warnings being treated as errors make[3]: *** [util/probe-event.o] Error 1 Fix it by using the PRIx64 for u64. Signed-off-by: He Kuang --- tools/perf/util/probe-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index f272a71..c5e1338 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -317,7 +317,7 @@ static int find_alternative_probe_point(struct debuginfo *dinfo, ret = -ENOENT; goto out; } - pr_debug("Symbol %s address found : %lx\n", pp->function, address); + pr_debug("Symbol %s address found : %" PRIx64 "\n", pp->function, address); ret = debuginfo__find_probe_point(dinfo, (unsigned long)address, result); -- 2.2.0.33.gc18b867