From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26291 invoked by alias); 18 May 2011 16:19:29 -0000 Received: (qmail 26277 invoked by uid 22791); 18 May 2011 16:19:27 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SARE_SUB_PCT_LETTER X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 May 2011 16:19:09 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 5503D1C00913; Wed, 18 May 2011 18:19:08 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 4FB181C0009D; Wed, 18 May 2011 18:19:08 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id iUqqpAW5X+tA; Wed, 18 May 2011 18:19:08 +0200 (CEST) Received: from igel.home (ppp-93-104-151-90.dynamic.mnet-online.de [93.104.151.90]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 18 May 2011 18:19:07 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 6A641CA29C; Wed, 18 May 2011 18:19:07 +0200 (CEST) From: Andreas Schwab To: Jason Duerstock Cc: binutils@sourceware.org Subject: Re: ld error message %C format References: <20110518154757.GQ20800@bubble.grove.modra.org> X-Yow: I feel like I am sharing a ``CORN-DOG'' with NIKITA KHRUSCHEV.. Date: Wed, 18 May 2011 16:19:00 -0000 In-Reply-To: (Jason Duerstock's message of "Wed, 18 May 2011 12:03:42 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00269.txt.bz2 Jason Duerstock writes: >>+ fprintf (fp, "%u%s", linenumber, ":" + done); > > Isn't this a C++ism? Shouldn't it be: > > + fprintf(fp, "%u:%s", linenumber, done); done isn't a string. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."