From owner-cvs-src@FreeBSD.ORG Wed Jan 25 19:15:58 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E02D16A41F; Wed, 25 Jan 2006 19:15:58 +0000 (GMT) (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 3682B43D46; Wed, 25 Jan 2006 19:15:49 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 81B43BC74; Wed, 25 Jan 2006 19:15:48 +0000 (UTC) To: Julian Elischer From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 25 Jan 2006 10:49:28 PST." <43D7C838.4000202@elischer.org> Date: Wed, 25 Jan 2006 20:15:47 +0100 Message-ID: <19618.1138216547@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/include printf.h src/lib/libc/stdio Makefile.inc xprintf.c xprintf_errno.c xprintf_quote.c xprintf_vis.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 19:15:58 -0000 In message <43D7C838.4000202@elischer.org>, Julian Elischer writes: >Poul-Henning Kamp wrote: >> FreeBSD src repository >> >> Modified files: >> include printf.h >> lib/libc/stdio Makefile.inc xprintf.c xprintf_vis.c >> Added files: >> lib/libc/stdio xprintf_errno.c xprintf_quote.c >> Log: >> Make the %V{is} extension handle a NULL pointer like %s does: output "(null)" >> >> Add %M{essage} extension which prints an errno value as the >> corresponding string if possible or numerically otherwise. > >Is this compatible with anyone else? Not that I know off. It is an optional extension which you have to ask for explicitly, so it is non-intrusive as far as stadnards go. >basically, did this idea come from somewhere? or is it new? Extending printf is as old as at least SYSIII. The specific implementation was written to be compatible with GLIBC. -- 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.