From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17756 invoked by alias); 11 Jun 2015 11:04:44 -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 17691 invoked by uid 89); 11 Jun 2015 11:04:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 11 Jun 2015 11:04:41 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id CE47636B4E0; Thu, 11 Jun 2015 11:04:39 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5BB4bBV019336; Thu, 11 Jun 2015 07:04:38 -0400 Message-ID: <55796B44.9090904@redhat.com> Date: Thu, 11 Jun 2015 11:04:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: James Greenhalgh CC: Gary Benson , "gdb-patches@sourceware.org" , Eli Zaretskii , Doug Evans , =?windows-1252?Q?Iago_L=F3pez_Galeiras?= Subject: Re: [PATCH 2/9 v2] Introduce nat/linux-namespaces.[ch] References: <555DF224.8020101@redhat.com> <20150611084023.GA7361@arm.com> In-Reply-To: <20150611084023.GA7361@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-06/txt/msg00207.txt.bz2 On 06/11/2015 09:40 AM, James Greenhalgh wrote: > I would expect that to mean this is broken for any > "long int != ssize_t" target. I'm not sure which C standards GDB requires > compatability with, but I believe the portable C99 way of printing a > ssize_t would be "%zd". GDB is written in C90 currently. The usual way to handle this is to use plongest (with %s). As this is native GNU/Linux code, casting to long (thus keep %ld) would be fine too. Thanks, Pedro Alves