Bug #2574

mdb needs ::printf

Added by Joshua Clulow about 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2012-03-31
Priority:Normal Due date:
Assignee:Joshua Clulow % Done:

100%

Category:cmd - userland programs Spent time: -
Target version:-
Difficulty:Bite-size Tags:

Description

Bryan Cantrill has implemented an MDB dcmd to allow members of an object to be output using a printf(3C)-like format string. This bug seeks to integrate that feature.

Usage example:

::walk zone |
    ::printf "%-40s %20s\n" zone_t zone_name zone_nodename

Upstream: https://github.com/joyent/illumos-joyent/commit/25bb86808d5e85776fcd3035a67d35412ca5fcdb

History

Updated by Rich Lowe almost 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Resolved in r13723 commit:3297c26a553a

Also available in: Atom PDF