From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id enqwKOIUGGB6CgAAWB0awg (envelope-from ) for ; Mon, 01 Feb 2021 09:49:06 -0500 Received: by simark.ca (Postfix, from userid 112) id 988C01EF80; Mon, 1 Feb 2021 09:49:06 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EC0C71E939 for ; Mon, 1 Feb 2021 09:49:05 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9BF0C3875411; Mon, 1 Feb 2021 14:49:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BF0C3875411 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612190945; bh=bIosUXzhhgbHdFfpmKxoWNV5FL6GtyU2cweoOpg9byg=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ZVstYLgfwaDZrNiPrwcj3b1wURkcPco1aIjlDFHBNRNwchv5LzPSoQ6jD4Gmfq7nP T0pq9jYeEMkCv6k8BlFKcHZvaPXi7cvXD+F+uJlk0ExFFAb/IUgLdAutARgGdRfgp5 Ri+Cqg310H1WZms7/JgA8eUNtXgKNfZQdUZU9UYY= Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 71EC13857C73 for ; Mon, 1 Feb 2021 14:49:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71EC13857C73 Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFB85340E81; Mon, 1 Feb 2021 14:49:00 +0000 (UTC) Date: Mon, 1 Feb 2021 09:49:00 -0500 To: Andrew Burgess Subject: Re: [PATCH 06/11] sim/rx: use puts instead of printf in a few places Message-ID: Mail-Followup-To: Andrew Burgess , gdb-patches@sourceware.org References: <594cd64926e070920c8860baa08e9e55f0c7c9c3.1612179773.git.andrew.burgess@embecosm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <594cd64926e070920c8860baa08e9e55f0c7c9c3.1612179773.git.andrew.burgess@embecosm.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 01 Feb 2021 11:44, Andrew Burgess wrote: > Calling printf with the format being a non constant string results in > a GCC warning. Use puts instead in a few places. puts() outputs the string with a trailing newline. doesn't seem equiv in this code ? i change to printf ("%s", ...) to avoid these warnings. -mike