From owner-freebsd-arch@FreeBSD.ORG Thu Sep 9 21:41:25 2010 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19C521065674; Thu, 9 Sep 2010 21:41:25 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id CEC648FC13; Thu, 9 Sep 2010 21:41:24 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id A843D3F5C3; Thu, 9 Sep 2010 21:41:23 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.4/8.14.4) with ESMTP id o89Kwm4V001726; Thu, 9 Sep 2010 20:58:48 GMT (envelope-from phk@critter.freebsd.dk) To: mdf@FreeBSD.org From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 09 Sep 2010 10:45:59 MST." Date: Thu, 09 Sep 2010 20:58:48 +0000 Message-ID: <1725.1284065928@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: FreeBSD Arch Subject: Re: Extending sbufs with a drain, take 2 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 21:41:25 -0000 In message , mdf@ FreeBSD.org writes: >One question about the printf expanded args in xprintf.c: > >Does the extension framework allow for multiple character conversion >specifiers? I belive it indexes with a single char into an array right now, but that is just a matter of string parsing, {...} is not hard to do. Bear in mind that using extensions force you to disable the GCC format checks, a heavy cost to bear. Also bear in mind that any work on this should keep an eye on, and if at all possible collaborate with GLIBC for maximum compatibility. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.