From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84199 invoked by alias); 11 Jun 2015 11:46:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 84188 invoked by uid 89); 11 Jun 2015 11:46:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Jun 2015 11:46:43 +0000 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 11 Jun 2015 04:46:41 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 11 Jun 2015 04:46:40 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t5BBkdwa002940; Thu, 11 Jun 2015 12:46:40 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id t5BBkdD8012289; Thu, 11 Jun 2015 13:46:39 +0200 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id t5BBkdXW012285; Thu, 11 Jun 2015 13:46:39 +0200 From: Walfred Tedeschi To: gdb-patches@sourceware.org Cc: Walfred Tedeschi Subject: [OB PATCH] Fix ARI new warnings introduced in i386-tdep.c. Date: Thu, 11 Jun 2015 11:46:00 -0000 Message-Id: <1434023186-12251-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00213.txt.bz2 1. gdb/i386-tdep.c:8720: Do not use 'long long', instead use LONGEST gdb/i386-tdep.c:8720: long long int size; 2. gdb/i386-tdep.c:8755: Do not use printf(%ll), instead use printf(%s,phex()) to dump a 'long long' value gdb/i386-tdep.c:8755: ui_out_field_fmt (uiout, "size", "%lld", size); 2015-06-11 Walfred Tedeschi * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of long long int and plongest instead of %ll. --- gdb/i386-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 6304591..133021f 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -8717,7 +8717,7 @@ static void i386_mpx_print_bounds (const CORE_ADDR bt_entry[4]) { struct ui_out *uiout = current_uiout; - long long int size; + LONGEST size; struct gdbarch *gdbarch = get_current_arch (); CORE_ADDR onecompl = ~((CORE_ADDR) 0); int bounds_in_map = ((~bt_entry[1] == 0 && bt_entry[0] == onecompl) ? 1 : 0); @@ -8752,7 +8752,7 @@ i386_mpx_print_bounds (const CORE_ADDR bt_entry[4]) size = (size > -1 ? size + 1 : size); ui_out_text (uiout, ", size = "); - ui_out_field_fmt (uiout, "size", "%lld", size); + ui_out_field_fmt (uiout, "size", "%s", plongest (size)); ui_out_text (uiout, ", metadata = "); ui_out_field_core_addr (uiout, "metadata", gdbarch, bt_entry[3]); -- 2.1.4