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 574F7281525 for ; Sun, 8 Feb 2026 15:22:29 +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=1770564150; cv=none; b=uumbdvk6XshTH1/xhy8VlRg+OqDOn0un9r5swOjEEEirBg2CO7aURMBqLOIuAck5+WgsOSLQscDG3PjJH3KbbBXvKBo4TyMuZmywrJUOVaTu0RAqiPeX4ACKB1luz/54aJG5xroZa3wO2wwDY8qe+Zu2OjawNodBfcC6Vm3I+VQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770564150; c=relaxed/simple; bh=VOxrhNy6XZNvo8qDJgIBDXQ1cuVfsyxrwxeyLdY021U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gNFH+gFA3ZSoUnalyE6XXzQCysIQtQkcpf7xo+MduAJDFAHtBy1vdPuFsVH4GKAsfoAkAeLtqDrwjLeHTvxKSEe7hgqQnkCh0jbBT/duRVugpf/evdRWPxiQcBXZXytPph/WSlQuQ6+3yQMgc38kmp9rzxxwV7ftnq4niRK7+sE= 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=gQLb8eYe; 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="gQLb8eYe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1770564147; bh=qzq7G435qwCEorzIkgo/Ez26wXe3ybM3I0gUoO1tLvg=; h=From:Message-ID:From; b=gQLb8eYemFgCJZcbmxzc6BwbFOsW8KpjA/CXlN1K7jnvir/TJ0tJZzBvpu+QLn8EN wZfWr/3KyUxHWcrq/YI2Kxd1rtR3cgaLdrSUTFFSdgzR4Cc7AJPK/2XNEGdlXcoNcS uo87g99qrRX6GOxDWZA+ErL551IdSRLidIrlqIbQ= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 7703BC0A6F; Sun, 08 Feb 2026 16:22:27 +0100 (CET) Date: Sun, 8 Feb 2026 16:22:27 +0100 From: Willy Tarreau To: david.laight.linux@gmail.com Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org, Cheng Li Subject: Re: [PATCH v2 next 06/11] tools/nolibc/printf: Use bit-masks to hold requested flag, length and conversion chars Message-ID: References: <20260206191121.3602-1-david.laight.linux@gmail.com> <20260206191121.3602-7-david.laight.linux@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: <20260206191121.3602-7-david.laight.linux@gmail.com> On Fri, Feb 06, 2026 at 07:11:16PM +0000, david.laight.linux@gmail.com wrote: > From: David Laight > > Use flags bits (1u << (ch & 31)) for the flags, length modifiers, and > conversion specifiers. > This makes it easy to test for multiple values at once. > > Detect the conversion flags " #+-0" although they are currently all ignored. > > Add support for length modifiers 't' and 'z' (both long) and 'q' and 'L' > (both long long). > > Add support for "%i" (the same as %d"). > > Unconditionally generate the signed values (for %d) to remove a second > set of checks for the size. OK, looks good to me, and I confirm that the inflation caused by the jump table at patch 4 is now gone. Acked-by: Willy Tarreau Willy