summaryrefslogtreecommitdiff
path: root/dmioutput.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2020-04-01 09:51:51 +0200
committerJean Delvare <jdelvare@suse.de>2020-04-01 09:51:51 +0200
commitdd593d2f0c7272658070208d0a6957d77fc7e6f2 (patch)
tree77994f40d1d14b18193ccaa3a9c82c69396f4af7 /dmioutput.c
parent2241f1dd232fe8e1d57fdb2482ad417ebe23279e (diff)
downloaddmidecode-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.c10
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");
+}