[Bug 242686] procstat usage message is mangled
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 17 16:00:00 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242686
Bug ID: 242686
Summary: procstat usage message is mangled
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: markj at FreeBSD.org
The descriptions of the subcommands are wildly misformatted. This seems to be
the result of a change in libxo: procstat writes the usage message
incrementally using xo_error(), and libxo recently changed xo_error() to append
a newline if the input string does not end with one.
We can fix procstat, but xo_error()'s behaviour contradicts its man page:
When converting an application to libxo, one can replace
fprintf(stderr,...) calls with xo_error() calls.
I don't really understand why xo_error() is doing this given that we have
xo_err(), xo_errx(), etc..
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list