summaryrefslogtreecommitdiff
path: root/dmioutput.c
Commit message (Collapse)AuthorAgeFilesLines
* dmidecode: Add helper function for structure errorsJean Delvare2020-04-011-0/+12
| | | | | | | Add a helper function to print structure errors, specifically for structures which do not fit in the table. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function for separatorsJean Delvare2020-04-011-0/+5
| | | | | | A simple helper function to print a blank line between records. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_subattrJean Delvare2020-04-011-0/+12
| | | | | | Print all second-level attributes through a helper function pr_subattr. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper functions pr_list_start/item/endJean Delvare2020-04-011-0/+35
| | | | | | | | | Print lists through helper functions. pr_list_start() starts the list, with an optional value. pr_list_item() prints a single item. pr_list_end() is a no-op for plain text output, but is in place in anticipation of supporting other output formats such as HTML. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_attrJean Delvare2020-04-011-0/+12
| | | | | | Print all first-level attributes through a helper function pr_attr. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_handle_nameJean Delvare2020-04-011-0/+10
| | | | | | | Print the name of each handle type through a helper function pr_handle_name. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_handleJean Delvare2020-04-011-0/+6
| | | | | | Print the handle information through a helper function pr_handle. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_infoJean Delvare2020-04-011-0/+10
| | | | | | Print all info messages through a helper function pr_info. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add helper function pr_commentJean Delvare2020-04-011-0/+35
Print all comments through a helper function pr_comment. Signed-off-by: Jean Delvare <jdelvare@suse.de>