From patchwork Tue Jul 3 06:58:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Neuling X-Patchwork-Id: 938425 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41KZqH2qfsz9s3C for ; Tue, 3 Jul 2018 17:04:11 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41KZqG5hrqzF1Nf for ; Tue, 3 Jul 2018 17:04:10 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41KZhd37mqzF1Qp for ; Tue, 3 Jul 2018 16:58:25 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 41KZhd1SDHz9s2R; Tue, 3 Jul 2018 16:58:25 +1000 (AEST) Received: by localhost.localdomain (Postfix, from userid 1000) id F2D67EE78BC; Tue, 3 Jul 2018 16:58:24 +1000 (AEST) From: Michael Neuling To: alistair@popple.id.au Date: Tue, 3 Jul 2018 16:58:05 +1000 Message-Id: <20180703065810.14917-1-mikey@neuling.org> X-Mailer: git-send-email 2.17.1 Subject: [Pdbg] [PATCH 1/6] htm: Fix compiling on ARM X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pdbg@lists.ozlabs.org MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Michael Neuling --- libpdbg/htm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libpdbg/htm.c b/libpdbg/htm.c index 906dcfdd8c..7aac8dc72e 100644 --- a/libpdbg/htm.c +++ b/libpdbg/htm.c @@ -692,11 +692,13 @@ static int configure_memory(struct htm *htm) * 1 = Trace Mem Size from 16M to 8G */ if (size < 16777216UL) { - PR_ERROR("memtrace size must be atleast 16MB. Currently:%lx\n", size); + PR_ERROR("memtrace size must be atleast 16MB. Currently:%" + PRIx64 "\n", size); return -1; } if (size > 274877906944UL) { - PR_ERROR("memtrace size must be smaller than 256GB. Currently:%lx\n", size); + PR_ERROR("memtrace size must be smaller than 256GB. Currently:%" + PRIx64 "\n", size); return -1; } @@ -1055,7 +1057,7 @@ static int do_htm_dump(struct htm *htm, char *filename) end = htm_trace_size(&status); trace_size = wrapped ? end : last; - printf("Dumping %li MB to %s\n", trace_size >> 20, filename); + printf("Dumping %" PRIi64 " MB to %s\n", trace_size >> 20, filename); dump_fd = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); if (dump_fd == -1) {