Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 00:38:00 +0900 (JST)
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        des@ofug.org
Cc:        arch@freebsd.org
Subject:   Re: %a and %A formats
Message-ID:  <20001211.003800.25391776.ume@mahoroba.org>
In-Reply-To: <xzppuj0s5da.fsf@flood.ping.uio.no>
References:  <xzppuj0s5da.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On 10 Dec 2000 15:44:33 +0100
>>>>> Dag-Erling Smorgrav <des@ofug.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001211.003800.25391776.ume>