From owner-freebsd-arch Sun Dec 10 7:40:26 2000 From owner-freebsd-arch@FreeBSD.ORG Sun Dec 10 07:40:24 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id 86FE837B400 for ; Sun, 10 Dec 2000 07:40:22 -0800 (PST) Received: from localhost (IDENT:5a9JysishX3OxgzrrIgwiA5Yx0qxtsTjXZp678vVJs+50Q+5sAlG+gK43EFScOt9@localhost [::1]) (authenticated) by peace.mahoroba.org (8.11.1/8.11.1/peace) with ESMTP/inet6 id eBAFc2E90863; Mon, 11 Dec 2000 00:38:02 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 11 Dec 2000 00:38:00 +0900 (JST) Message-Id: <20001211.003800.25391776.ume@mahoroba.org> To: des@ofug.org Cc: arch@freebsd.org Subject: Re: %a and %A formats From: Hajimu UMEMOTO In-Reply-To: References: X-Mailer: xcite1.20> Mew version 1.95b38 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On 10 Dec 2000 15:44:33 +0100 >>>>> Dag-Erling Smorgrav said: des> I've added %a and %A formats to the kernel printf() and replaced most des> instances of inet_ntoa() in sys/netinet with %a (I'll do netinet6 des> later if there's interest). The patches are up on freefall: des> http://people.freebsd.org/~des/software/printf-20001209.diff I don't like this. I've tired enough to address af dependent programming. What character will you introduce for IPv7 or IPv8...? Furthermore, IPv6 address has scope that IPv4 doesn't have. %a should takes struct sockaddr * for the argument instead of struct in_addr *, and should be address independent. Do you have a plan to the standard like POSIX? -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message