From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72F4EC76196 for ; Thu, 6 Apr 2023 18:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TzQEpsUcMz8RhAeMtN7VQKQTSkz9nlW2rbvz3IflWpE=; b=fmZVLMdIWA1tIy uvC4RmhOO1J9JfJwe+pJ6Sh466di7Td05AQM2KENxI0kjf0zgeWqebXXiILVYd1+2xLH5W92oBYIL +MVJNhEoiIz5Er+x2eKB3w50l2SJP0Gj5obMOxqasJNIlKyoqqm8wIGI2i3cZHahlGjMKlbKRuRTc vYlNBrZrb/cpW9rvB7ts1ncjuwtsjDMDZOz8hGfLd+ed6m6KGoE8JCLwzayEGviK9Px90DNq3eXZp I7XSuhpYgRlZ2xhwW+BQiDFpb0iOuqnUJzq2hlTpxj01QUqpgR8YQaP0e1oj+NxQTNMVBBneGnrt3 raKltnB6wEC2/tKTDyjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkUJT-008Fdn-1E; Thu, 06 Apr 2023 18:26:23 +0000 Received: from wtarreau.pck.nerim.net ([62.212.114.60] helo=1wt.eu) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkUJQ-008FcL-1r for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2023 18:26:22 +0000 Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 336IQ9Q4005908; Thu, 6 Apr 2023 20:26:09 +0200 Date: Thu, 6 Apr 2023 20:26:09 +0200 From: Willy Tarreau To: Mark Brown , "Paul E. McKenney" Cc: Shuah Khan , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] tools/nolibc/stdio: Implement vprintf() Message-ID: References: <20230405-kselftest-nolibc-v2-0-2ac2495814b5@kernel.org> <20230405-kselftest-nolibc-v2-1-2ac2495814b5@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230405-kselftest-nolibc-v2-1-2ac2495814b5@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_112620_965027_0DE8EB4D X-CRM114-Status: GOOD ( 15.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 06, 2023 at 05:19:10PM +0100, Mark Brown wrote: > vprintf() is equivalent to vfprintf() to stdout so implement it as a simple > wrapper for the existing vfprintf(), allowing us to build kselftest.h. > > Suggested-by: Willy Tarreau > Signed-off-by: Mark Brown > --- > tools/include/nolibc/stdio.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h > index 96ac8afc5aee..6cbbb52836a0 100644 > --- a/tools/include/nolibc/stdio.h > +++ b/tools/include/nolibc/stdio.h > @@ -273,6 +273,12 @@ int vfprintf(FILE *stream, const char *fmt, va_list args) > return written; > } > > +static __attribute__((unused)) > +int vprintf(const char *fmt, va_list args) > +{ > + return vfprintf(stdout, fmt, args); > +} > + > static __attribute__((unused, format(printf, 2, 3))) > int fprintf(FILE *stream, const char *fmt, ...) > { Perfect, thank you Mark, I'm glad that it simplified the rest of your series. Acked-by: Willy Tarreau Paul, feel free to directly queue this one for 6.5. If you prefer I can as well queue it on my side and send it later, it's just that I have exactly zero extra value on top of this one ;-) Thanks, Willy _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel