Bug #3668

add "%H" to mdb_printf() for human-readable sizes

Added by Robert Mustacchi almost 6 years ago. Updated almost 6 years ago.

Status:ResolvedStart date:2013-04-02
Priority:NormalDue date:
Assignee:Bryan Cantrill% Done:


Category:mdb - modular debugger
Target version:-
Difficulty:Bite-size Tags:


From the original Joyent bug report:

For OS-1367, we want ::umastat to emit human-readable sizes. Indeed, it's common – or should be – for dcmds to want to print human-readable sizes (e.g., like the output of the the "-h" option to ls/dh/du). It seems natural to add this as an mdb_printf() (and ::printf!) specifier. After some discussion (and some gnashing of teeth over the fact that %S has been taken for so little gain), "%H" was selected as the most appropriate specifier (and is not taken by other printf-like functionality).


#1 Updated by Robert Mustacchi almost 6 years ago

  • % Done changed from 90 to 100
  • Status changed from New to Resolved

Resolved in cab8de142f6f9cba01161c444d3f6bda08561e45.

Also available in: Atom