From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22630 invoked by alias); 30 May 2011 18:35:15 -0000 Received: (qmail 22555 invoked by uid 22791); 30 May 2011 18:35:14 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 May 2011 18:35:00 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4UIZ06G010485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 30 May 2011 14:35:00 -0400 Received: from host1.jankratochvil.net (ovpn-113-38.phx2.redhat.com [10.3.113.38]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4UIYwNU004165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 May 2011 14:34:59 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p4UIYvLh027705; Mon, 30 May 2011 20:34:57 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p4UIYu1X027699; Mon, 30 May 2011 20:34:56 +0200 Date: Mon, 30 May 2011 18:35:00 -0000 From: Jan Kratochvil To: GDB Administrator Cc: gdb-patches@sourceware.org Subject: Re: New ARI warning Sat May 28 01:53:47 UTC 2011 Message-ID: <20110530183455.GA26393@host1.jankratochvil.net> References: <20110528015347.GA10123@sourceware.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110528015347.GA10123@sourceware.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg00684.txt.bz2 On Sat, 28 May 2011 03:53:47 +0200, GDB Administrator wrote: > 439a440 > > gdb/linux-nat.c:2368: code: sprintf: Do not use sprintf, instead use xstrprintf > gdb/linux-nat.c:2368: sprintf (buffer, ', lwp); This is by me: char buffer[MAXPATHLEN]; sprintf (buffer, "/proc/%ld/status", lwp); I find the code perfectly correct, as I was told the ARI checks are only differential I hope it can be kept as is. Thanks, Jan