> The most convenient and flexible way to accomplish this might be to add
> a new conversion specifier to printf(), sprintf(), and friends. Perhaps
> "%m" and "%M" would be good choices, indicating that we want a scaled
> string that includes *m*etric prefixes (K, M, G, etc for "%m"; Kilo,
> Mega, Giga, etc for "%M").
I think this is a good direction to pursue. However:
* Such changes will need to be coordinated tools like lint. We have an
RFE logged against Sun's lint (5047696) to make this easy, and there
is an assigned RE, but I think the fix is still a ways out.
* I would avoid "%m", since this is already widely used as "errno"
in syslog(3C) format strings.
As an aside, we've been exploring adding format specifiers for IPv4 and
IPv6 addresses as well.
--
meem
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code