This is the mail archive of the
mailing list for the binutils project.
Re: RFC: Remove %A, %B and %L from error messages
- From: Alan Modra <amodra at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 17 Feb 2018 10:56:59 +1030
- Subject: Re: RFC: Remove %A, %B and %L from error messages
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com>
I would be inclined to go in a different direction. %A isn't so
useful nowadays with groups being named ".group". So remove the
feature entirely and just print the section name with "%s", or print
all sections with both their name and index using "%s[%d]".
For %L, I think it would be better to cast all bfd_vma to long long
and print with "ll". (It's better to give translators the option to
print a number in some locale specific way, and a translator looking
at a .pot file and seeing %lld immediately knows they are dealing with
a number rather than some other string.) binutils wouldn't compile
without long long support but I reckon that is OK nowadays.
%B is the most useful of the three, but you'll need to modify
bfd_get_bfd_name to support messages with more than one archive bfd..
Again, maybe just drop printing of enclosing archive?
Australia Development Lab, IBM