aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2017-07-21device tree: dtr_obj_read() tweaks, bug fixBurt P
* fixes a strange bug when running under Arch Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: special handling gpios and clocksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21computer/os.c: another libc detection fixBurt P
Starting in Debian 9, ldconfig requires root, and so it can't be used to get the GLIBC version. Try `ldd --version` first. It should give the same results. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: display phandle, symbol, and alias mappingsBurt P
* Of course, symbols and aliases are are the same as in /__symbols__ and /aliases. It still helps a bit. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: fixesBurt P
* /aliases/* and /__symbols/* are always strings * phandle ref element bug fix, re-enabled phandle refs * notes on a few more property types Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: add lookup for /__symbols__ valuesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: code comments and tweak dtr_str()Burt P
* dtr_str() requires obj, which knows its dtr. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: reworked and cleaned upBurt P
* Moved device tree functions to modules/devices/devicetree/dt_util.c * The dtr_* functions usable from outside devicetree.c, for example in get_motherboard(). Must #include "dt_util.h" * Now possible to use an alternate device tree root for testing -DOVRDTRROOT=\"/some/path\" * Alternately, pass dtr_new() an alternate base path. * Abandoned the tuple grouping and inherited properties stuff for now. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: phandle and alias mappingBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86: fix old bug in old bug detectionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: display arbitrary-length byte sequencesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: attempt to group tuples when shown as hex valuesBurt P
Based on information from http://elinux.org/Device_Tree_Mysteries#.23xxx-cells_property_name which is incomplete, try and group tuples using the relevant inherited #(.*)-cells properies. Just reg, clocks, and gpios so far. More possible. See dt_tup_len(). Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: tweaksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: complete hardinfo_clean_value() html escapingBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: code comment with info source linkBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: display 32-bit value lists and #(.*)-cells fieldsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: escape string valuesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: attempt to clean the labels for hardinfo shellBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: more small fixesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: small fixesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19computer.c: minor cosmetic fixes in hi_get_field()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19uptime: fix seg fault if uptime < 1 hourBurt P
Initialize full_fmt to NULL so free() won't crash if it wasn't used. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: Add 'compatible' to default summary, fix rpi bugBurt P
Fixes a bug where a Raspberry Pi with a generic arm kernel will be detected but not have a revision code in cpuinfo to lookup information with. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: display intsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Expand device tree supportBurt P
The complete tree is now available to view. There are some bugs, mostly to do with hardinfo protocol quirks. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19filesystem: make strings translatableBurt P
Plus a couple other minor tweaks. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19rpi_data: make sure PROC_CPUINFO is definedBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19All module entries must have name != NULLBurt P
Hack a way to skip unavailable entries. Now "Resources" is avaialbe outside of x86 when it wasn't before. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Move Device Tree up in the listBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Move Raspberry Pi detection stuff into Device Tree sectionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Begin support for device treeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86 flag definition lookup changesBurt P
* Avoid using GHashTable * Use single flag lookup table with bug: and pm: prefixes to avoid flag name collisions Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86: strdup() some const strings before g_hash_table_insert()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19x86,arm,riscv: Use gettext contexts and comments for cpu flagsBurt P
* flag defintion strings are grouped into contexts: x86-flag, arm-flag, riscv-ext * a comment is included for translators so that they know what flag the string defines without looking at the source code Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Make cache type strings translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Find a value for OS->Language field, Computer summary headers translatableBurt P
Note: "Computer" summary (not Computer->Summary). Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Fix Python detection, add Perl6, scan_dev() tweakBurt P
* Python2 detection needs to look at stderr instead of stdout * Python3 detection looks at stdout * Perl6 detection * scan_dev() now captures stdout and stderr and ignores the one it doesn't want. This prevents messages from appearing in the console when the scan happens. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Use const for gettext stringsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19network: headers for network interfaces list translatableBurt P
Some noise in the diff due to automatic trailing whitespace removal. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19net.c: Make all string translatableBurt P
Depends on working pgettext(). Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19net.c: add predictable network names from systemdBurt P
See: https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L20 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19net.c: cosmetic changesBurt P
* Mixed tab/space indent -> all spaces indent * Remove trailing whitespace Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-16Use Unicode bargraphs for WiFi signal strength indicatorLeandro Pereira
2017-07-12Make bits of entropy string translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Use ngettext to make uptime translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12User Info and Development header strings made translatableBurt P
Finishes https://github.com/lpereira/hardinfo/issues/38 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Remove unused c-format strings, make "pixels" translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Add column for localized field descriptions to Devices->MemoryBurt P
To get around the earlier problems with localized labels in the memory view, add a column "Description" that uses the localized labels. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Changes related to gettext and shell interface quirksBurt P
* Fixes for "..." special fields. * Computer->Summary and Computer->OS are more translatable, and and if the label is translated, the special code for updating the ... will still work. * Devices->Memory labels are currently not translated, some limitations exist. The labels were being double-translated on update. The earlier fix for Summary->RAM breaks if they are translated. * A bunch of trailing whitespace in the edited files was removed by the editor, and that created some noise in the diff. A rather frustrating experience. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Fix Computer -> Summary -> RAM for non-EnglishBurt P
Signed-off-by: Burt P <pburt0@gmail.com>