From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 04FFA393D010 for ; Sat, 30 Jan 2021 18:40:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 04FFA393D010 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 64923340F82 for ; Sat, 30 Jan 2021 18:40:19 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 4/4] sim: m68hc11: fix printf size warnings Date: Sat, 30 Jan 2021 13:40:16 -0500 Message-Id: <20210130184016.7405-4-vapier@gentoo.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210130184016.7405-1-vapier@gentoo.org> References: <20210130184016.7405-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2021 18:40:21 -0000 GCC complains %llu is wrong for signed64, so switch to PRIi64. --- sim/m68hc11/ChangeLog | 4 ++++ sim/m68hc11/dv-m68hc11tim.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index e83e11ebb70b..0063e8e8b464 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,3 +1,7 @@ +2021-01-30 Mike Frysinger + + * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64. + 2021-01-30 Mike Frysinger * m68hc11_sim.c (cpu_set_sp): Add static markings. diff --git a/sim/m68hc11/dv-m68hc11tim.c b/sim/m68hc11/dv-m68hc11tim.c index b0d032e19ae5..cd8274ffc34f 100644 --- a/sim/m68hc11/dv-m68hc11tim.c +++ b/sim/m68hc11/dv-m68hc11tim.c @@ -503,7 +503,7 @@ cycle_to_string (sim_cpu *cpu, signed64 t, int flags) if (t < LONG_MAX) sprintf (buf, "%9lu%s%s", (unsigned long) t, cycle_buf, time_buf); else - sprintf (buf, "%llu%s%s", t, cycle_buf, time_buf); + sprintf (buf, "%" PRIi64 "%s%s", t, cycle_buf, time_buf); return buf; } -- 2.30.0