From owner-freebsd-arch Sun Dec 10 6:44:41 2000 From owner-freebsd-arch@FreeBSD.ORG Sun Dec 10 06:44:39 2000 Return-Path: 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 F17B637B400 for ; Sun, 10 Dec 2000 06:44:38 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id PAA49690; Sun, 10 Dec 2000 15:44:33 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: arch@freebsd.org Subject: %a and %A formats From: Dag-Erling Smorgrav Date: 10 Dec 2000 15:44:33 +0100 Message-ID: Lines: 15 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 I've added %a and %A formats to the kernel printf() and replaced most instances of inet_ntoa() in sys/netinet with %a (I'll do netinet6 later if there's interest). The patches are up on freefall: http://people.freebsd.org/~des/software/printf-20001209.diff I've probably done at least *one* thing wrong, so I'll appreciate feedback on how to improve the patch before it's committed. I'd also appreciate any information on how to teach gcc about %a and %A (currently, it thinks %a is a floating point format and complains about passing a pointer instead of a double) DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message