Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1896610ybk; Mon, 11 May 2020 07:03:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKggYcEv5vMLAmkjBPMtKLVWaMpEFOBewtD4saDbU6Wdhz3qGfDiF96QB0xH+Y0SbASsfr2 X-Received: by 2002:a17:906:82d2:: with SMTP id a18mr13211541ejy.373.1589205798800; Mon, 11 May 2020 07:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589205798; cv=none; d=google.com; s=arc-20160816; b=Iu0Q52UcK0W0amd47zllgMv7AsK5ylY1Q9/W6wjNFJWUYnKRqMDfsSZgFD8RbXxhm0 vL93b5eHdEVOylx71mID/ysVk3RZVxiNXImVdUy/uNKtzsomosDJsBhPr9foFHiEMHkI eYJ23NlvDS6/OWFiS87eMbpXovU9TaoFdJ+PQ1dfUbR3g0ZQ7zQEPJAWE9iH/izzz1xX s4/59g6NwZab2wh5DWrimyt95omtkJzuNsicNgA4p6pMaMEOKjTayo4uJtE8GwXDWSBN Kd/HnWuzGc7uCXSVvNiyNygOx75nqlqvIcoeFpZF5SSabJSKawqufW76IAhcnqMQCypI B4bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BJ7yUfZzPloTQs5hlmsD9Jdc4HmEPX8tsG17KKBsaB8=; b=iHKzKOQTQ4s65xkPg0whEXj/WS8m3XndyfFJY75lvvjXz30EJ+e9fE5SfNjyPrQdi8 Dil4ea4g/iYtn1FnUqF05m4AfZCTr+9Ifrf/o3/4WUVYKmu8IT3bhio2kCNsSHtOz2qS Ei4How5zYFCs0wdb8zJwr5yZZwhj1S0Qajcvdk2vzbYTxB0ZLUCG3XBFAKXBIxPPW02S GxD65rW8pwepAT9vMXy8hriJC932oLkhJmfpUXqlExPGOGJszE3d4BMVN6LIjOwHoU1q 0ui6snadPPpPp2u9R/AuKqLDPVf/rMd9kCnY+kUhi6+KpMNwi9CstchKNTGEuElQAFqK cp1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S+h93yd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co24si5606875edb.24.2020.05.11.07.02.24; Mon, 11 May 2020 07:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S+h93yd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730368AbgEKN6L (ORCPT + 99 others); Mon, 11 May 2020 09:58:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:36848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730153AbgEKN6K (ORCPT ); Mon, 11 May 2020 09:58:10 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 081D8206D6; Mon, 11 May 2020 13:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589205490; bh=J4KKC8+vrNZz8SuyyVe6Qmx4TGwxNCTYQEPJY1Jd6Ko=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S+h93yd09KTGhPSerX2Whl5Hy0LT2F67zPe6uHU1x45kKcEg8J4iYYwMtzU4OyTnS JYi0BxRrt0pIxxysWo+TTQiqiwSRQupInyQ6cZwDG7SyerRUvMz4B3hKdiGXHKq9u6 A6r7qWaUV/NM0xO3+edlrwdEL6xZtJfI5RCFJuTM= Date: Mon, 11 May 2020 22:58:05 +0900 From: Masami Hiramatsu To: Andreas Schwab Cc: Shuah Khan , Steven Rostedt , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi , Li Philip , Liu Yiding , Xiao Yang , David Laight Subject: Re: [PATCH v2] selftests/ftrace: Use printf for backslash included command Message-Id: <20200511225805.ed665ee97d3cbd87a5ca9380@kernel.org> In-Reply-To: <87eerq1tcd.fsf@igel.home> References: <87imh21x6f.fsf@igel.home> <158920418730.16156.8299185499520876735.stgit@devnote2> <87eerq1tcd.fsf@igel.home> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 May 2020 15:42:10 +0200 Andreas Schwab wrote: > On Mai 11 2020, Masami Hiramatsu wrote: > > > - (! echo "$command" >> "$3" ) 2> /dev/null > > + (! printf "%s" "$command" >> "$3" ) 2> /dev/null > > printf %s does not print a newline, you need printf '%s\n' for that. Actually, ftrace doesn't need newline for single command. The reason why we had used echo instead of "echo -n" here, is just for short typing :) Thank you, -- Masami Hiramatsu