Project

General

Profile

Bug #3668

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

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

Status:
Resolved
Priority:
Normal
Category:
mdb - modular debugger
Start date:
2013-04-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

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).

History

#1

Updated by Robert Mustacchi about 6 years ago

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

Resolved in cab8de142f6f9cba01161c444d3f6bda08561e45.

Also available in: Atom PDF