[Toybox] [PATCH/RFC] lspci text output

Isaac idunham at lavabit.com
Sat Aug 3 18:27:24 PDT 2013


This is the preliminary version of lspci text output support (the location 
of pci.ids is hard-coded to /usr/share/misc/pci.ids, as found on Debian/Ubuntu).
+88 lines in two files, including reformatting, comments, whitespace, 
and build configuration as well as new code.

The changes:
-Add library code to look up descriptions.
(Added to lib/ because it will be useful for both lspci and lsusb, 
as mentioned by Andre)
-Add a counter for -n (for the sake of -nn)
-Add the file stream "db" to GLOBALS and open it conditionally
-Add name fields to bufs
-Look up text if enabled and -n is passed never or twice
-Print text if lookup succeeded


-------------- next part --------------
A non-text attachment was scrubbed...
Name: lspci-text.diff
Type: text/x-diff
Size: 4143 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130803/9555b8bd/attachment-0007.diff>


More information about the Toybox mailing list