]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid '%s' quoting notation in diagnostic messages
authorBernhard Voelker <mail@bernhard-voelker.de>
Tue, 3 Dec 2013 07:02:57 +0000 (08:02 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Tue, 3 Dec 2013 09:03:51 +0000 (10:03 +0100)
commitf65a3841606fcbc256c5dfcb7bd3ef90a7adec10
tree12474791e834d18659a842e2f9107189ef541c07
parent30384428a497bee7e04d493e4801d3b8297fe952
maint: avoid '%s' quoting notation in diagnostic messages

Add a new rule to ensure the use of quote() instead of '%s' or `%s'
in format strings of diagnostics messages.

* cfg.mk (sc_prohibit_quotes_notation): Add rule.
* TODO: Remove the entry regarding the '%s' notation.
* src/mkfifo.c (main): Remove the offending and in this case even
duplicate quoting in the format string of the error diagnostic.
* src/mknod.c (main): Likewise.
* src/df.c (decode_output_arg): Change two invocations of error()
according to the above new rule.
* src/numfmt.c: Fix numerous wrong quote notations to fit the above
new rule, mostly in internal debugging diagnostic messages.
TODO
cfg.mk
src/df.c
src/mkfifo.c
src/mknod.c
src/numfmt.c