From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.formilux.org (mta1.formilux.org [51.159.59.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16FF532AAD6 for ; Wed, 28 Jan 2026 07:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.159.59.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769586839; cv=none; b=Rbk8CD1eBSPJyG/7Eweg9cpW4i6jaFqljP3aIj+NWYNTbP8Xj0dLfZYd4o1rdQ0A4OCGQtm6Ui8Qh5VJOJZkaHI4YXxj4PEhl1ltVqpc8Ts15A2XTZHFfkgh5Y32o02xfLAbupXuoj9JTxKfQ8skdpSu66dKpkl6sn+wVzI1yJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769586839; c=relaxed/simple; bh=db7gLKkoyMudWy1mDH+fb/BQm7NGLVAakYSSfuZtBas=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QTU0mYeJJt36KDIIau+jRaTX1b+5UAP3KF06yLKL0ojIck0lS2BKv/fszhO7fuhl3RTrqZsA48CAjLEAaWxnXVSX82bTJoeaC4jRmNy/Q6Ea5m0EfpaZQrHP639/T7souI/llkQq/3g4EXiHiAX4kWM2BfJsydy0d5iOdsuVmoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b=PCmkYaR2; arc=none smtp.client-ip=51.159.59.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b="PCmkYaR2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1769586835; bh=mTKVCUsfTWwv/3PRUolUsyldlDoX7pC27+9EAwnWzLM=; h=From:Message-ID:From; b=PCmkYaR2WLlDpl521Xn36k6lYEZwC+pJpG2Ny/i7/5uNXxRTXDmtPVpbTcVRCFeCv 0rYhobMbYuk6bc/78C9NfaM2vDvpLXzAwu+sYvMWgH2bKErgDm+MGG3sVKSW8Ex4KX AuAHcCoyXQqxfrOUAyDsJpy+7A1pAd50lOTRCcok= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 4A9F5C0A54; Wed, 28 Jan 2026 08:53:55 +0100 (CET) Date: Wed, 28 Jan 2026 08:53:54 +0100 From: Willy Tarreau To: "licheng.li" Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] tools/nolibc: support left-aligned printing in printf Message-ID: References: <20260126031038.35387-1-im.lechain@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 28, 2026 at 08:47:28AM +0100, Willy Tarreau wrote: > On Mon, Jan 26, 2026 at 11:10:37AM +0800, licheng.li wrote: > > From: Cheng Li > > > > Currently, __nolibc_printf() in nolibc does not support the '-' flag > > for left alignment. This limits the ability to format tabular output > > nicely. > > > > This patch adds support for the '-' flag. The implementation is kept > > minimal to minimize the binary size impact. Since your patch also adds support for the '0' flag to left-pad with zeroes, this should be mentioned in the commit message. thanks, Willy