Page MenuHomeFreeBSD

Convert jls to use libxo
ClosedPublic

Authored by • rodrigc on Dec 9 2015, 4:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 18, 10:45 PM
Unknown Object (File)
Fri, Sep 18, 6:54 PM
Unknown Object (File)
Thu, Sep 17, 10:29 PM
Unknown Object (File)
Thu, Sep 17, 6:02 PM
Unknown Object (File)
Thu, Sep 17, 5:07 PM
Unknown Object (File)
Wed, Sep 16, 9:33 PM
Unknown Object (File)
Wed, Sep 16, 9:24 PM
Unknown Object (File)
Wed, Sep 16, 7:14 AM

Details

Summary

This was originally submitted under PR 200746.
I modified the patch slightly based on my
experience reviewing allanjude's conversion of procstat to libxo.

Test Plan

Create some jails.
Run:
jls
jls -N
jls -h
jls --libxo json,pretty
jls --libxo json,pretty -N
jls --libxo json,pretty -h

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1775
Build 1781: arc lint + arc unit

Event Timeline

• rodrigc retitled this revision from to Convert jls to use libxo.
• rodrigc updated this object.
• rodrigc edited the test plan for this revision. (Show Details)
• rodrigc added reviewers: allanjude, jamie, marcel, bapt.
• rodrigc added a subscriber: manu_bidouilliste.com.
• rodrigc edited edge metadata.

Remove stdout

usr.sbin/jls/jls.c
209

missing close }, bad padding, doesn't line up correctly

218

padding off by 1

399–400

instead of doing {e:hostname/%s}{d:hostname/%-29.29s} you can use the shorthand: {:hostname/%-29.29s/%s}

399–400

The path shouldn't get truncated

411

now the output is no longer padded to 15 characters. This is probably ok, but it does change the plain-text output (by removing space characters after the end of the line)

522

could the libxo 'quotes modifier' help here?

allanjude edited reviewers, added: • rodrigc; removed: allanjude.
allanjude marked 4 inline comments as done.
allanjude edited edge metadata.

Fix some problems found during my review

This revision is now accepted and ready to land.Dec 22 2015, 12:31 AM
• rodrigc edited reviewers, added: allanjude; removed: • rodrigc.
This revision now requires review to proceed.Dec 22 2015, 12:34 AM
allanjude edited edge metadata.
This revision is now accepted and ready to land.Dec 22 2015, 12:36 AM
This revision was automatically updated to reflect the committed changes.