If we're starting to aim for compatibility with binutils, then perhaps we
should change -p to match. I think having only --pid would be OK.
+ printf ("%s%s", symname (name), pretty ? " "
: "\n");
Use %c. Several other instances below.
+ name = (name != NULL) ? symname (name) : "??";
No need for parens.