When changing all error reporting function to support
format strings, usageerr was apparently forgotten.
2007-12-04 Frank Lichtenheld <djpig@debian.org>
+ * scripts/Dpkg/ErrorHandling.pm (usageerr):
+ Support format strings like all the other
+ error reporting functions.
+
* scripts/Makefile.am (EXTRA_DIST): Add
missing files from scripts/t/.
sub usageerr(@)
{
- printf(STDERR "%s: %s\n\n", $progname, "@_");
+ my ($msg) = (shift);
+
+ $msg = sprintf($msg, @_) if (@_);
+ warn "$progname: $msg\n\n";
# XXX: access to main namespace
main::usage();
exit(2);