From owner-freebsd-arch@FreeBSD.ORG Thu Sep 9 21:46:42 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 BCDDD1065697 for ; Thu, 9 Sep 2010 21:46:42 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B9338FC18 for ; Thu, 9 Sep 2010 21:46:40 +0000 (UTC) Received: by ywt2 with SMTP id 2so983990ywt.13 for ; Thu, 09 Sep 2010 14:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=LM3F0Z1wt6BG9jKCJZ/KumhwJSa+y9GeaH/7CZ7/5Ac=; b=KE3+R8sDlPaHH25ozGF4ZMX4Pmo7XAIZhnQJ0FxBroWdVqGfjELbGVa6KrBOU0wtfI nxyBBMJp6KCOEp2AQauNKlOkL9oyErxgk4sfR0Z9njnD5uHUuDJUFAPaCoGlKRmIsHaA n5eQtfh6CZ3uzI138qVNRkkblbVRp9VQ3dagg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=J4/2jqRbNA2RB+GF1PlpJR70+Cixylr2evyX4FztPio+Tq8lC54r3U/6+EFDt9NRJA zQYEY6KJgM8Aqj57c3pl8C9rm7MfNND0utTEJU7lv+1ikTfcRrH4izR4nlDURrKQwrEU bi7j+iTaC6FJ1tcBoSvFgh4DjVJIpCgDNC394= MIME-Version: 1.0 Received: by 10.100.209.15 with SMTP id h15mr811952ang.232.1284068800147; Thu, 09 Sep 2010 14:46:40 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.100.126.20 with HTTP; Thu, 9 Sep 2010 14:46:40 -0700 (PDT) In-Reply-To: <1725.1284065928@critter.freebsd.dk> References: <1725.1284065928@critter.freebsd.dk> Date: Thu, 9 Sep 2010 14:46:40 -0700 X-Google-Sender-Auth: qLCI8LOi2EUsqUKpkwRJTx7LbJM Message-ID: From: mdf@FreeBSD.org To: Poul-Henning Kamp Content-Type: text/plain; charset=ISO-8859-1 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:46:42 -0000 On Thu, Sep 9, 2010 at 1:58 PM, Poul-Henning Kamp wrote: > 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. Conveniently, we already have code at Isilon that modifies the gcc format checks to look for the %{} format. I saved an email with info about Clang's format checks so I may be able to do something there too. > 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. Yes, this is something I don't know anything about. I'll look into it. Thanks, matthew