diff options
author | Jean Delvare <jdelvare@suse.de> | 2020-04-01 09:51:51 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2020-04-01 09:51:51 +0200 |
commit | dd593d2f0c7272658070208d0a6957d77fc7e6f2 (patch) | |
tree | 77994f40d1d14b18193ccaa3a9c82c69396f4af7 /dmioutput.c | |
parent | 2241f1dd232fe8e1d57fdb2482ad417ebe23279e (diff) | |
download | dmidecode-git-dd593d2f0c7272658070208d0a6957d77fc7e6f2.tar.gz |
dmidecode: Add helper function pr_info
Print all info messages through a helper function pr_info.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'dmioutput.c')
-rw-r--r-- | dmioutput.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dmioutput.c b/dmioutput.c index e762a03..e702f11 100644 --- a/dmioutput.c +++ b/dmioutput.c @@ -33,3 +33,13 @@ void pr_comment(const char *format, ...) va_end(args); printf("\n"); } + +void pr_info(const char *format, ...) +{ + va_list args; + + va_start(args, format); + vprintf(format, args); + va_end(args); + printf("\n"); +} |