From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19225 invoked by alias); 6 Nov 2009 14:51:11 -0000 Received: (qmail 19217 invoked by uid 22791); 6 Nov 2009 14:51:10 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Nov 2009 14:51:06 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 23C512BAC7A; Fri, 6 Nov 2009 09:51:05 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XPDqQoy0pwNL; Fri, 6 Nov 2009 09:51:05 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id CA5542BAC79; Fri, 6 Nov 2009 09:51:04 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 3E666F5905; Fri, 6 Nov 2009 06:50:54 -0800 (PST) Date: Fri, 06 Nov 2009 14:51:00 -0000 From: Joel Brobecker To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [MI] Prevent program output from mixing with "^running". Message-ID: <20091106145054.GJ4557@adacore.com> References: <200911061728.12893.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200911061728.12893.vladimir@codesourcery.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-11/txt/msg00112.txt.bz2 > + fprintf_unfiltered (raw_stdout, "%s^running\n", > + current_token ? current_token : ""); If I were you, I'd add a comment explaining that both elements are printed at the same time on purpose. I occasionally "improve" code clarity by getting rid of ill-used ?: sequences... -- Joel