From owner-freebsd-arch Wed Jul 12 0:29:37 2000 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 8C4CE37BC4E for ; Wed, 12 Jul 2000 00:29:33 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id JAA84129; Wed, 12 Jul 2000 09:29:25 +0200 (CEST) (envelope-from des@flood.ping.uio.no) To: Mike Pritchard Cc: Alfred Perlstein , arch@FreeBSD.ORG Subject: Re: kernel printf %i? References: <5lzonpbc53.fsf@assaris.sics.se> <57067.963303670@axl.ops.uunet.co.za> <20000711013227.P25571@fw.wintelcom.net> <20000711041415.A16480@mppsystems.com> From: Dag-Erling Smorgrav Date: 12 Jul 2000 09:29:24 +0200 In-Reply-To: Mike Pritchard's message of "Tue, 11 Jul 2000 04:14:15 -0500" Message-ID: Lines: 22 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Pritchard writes: > I would be pretty astonished if our kernel printf supported > all of the libc printf options. Most of the *NIX systems (SysV/BSD/mutants) > I've worked on usually had a pretty stripped down version of printf > for the kernel. ...it's not complete, and it has some stuff libc doesn't have (%b, %D). I really miss a printf(9) man page... Speaking of printf(), there are two things I'd like to see added: - in libc, a *dprintf() family similar to *fprintf() except that they write to a file descriptor instead of a FILE *. - in the kernel, the addition of %a (IPv4 address) and %A (IPv6 address). I implemented these in a signal-safe atomic printf() I wrote for logging purposes a year ago or so, so I might be able to come up with patches. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message