summaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 610729b..1afff76 100644
--- a/ui.c
+++ b/ui.c
@@ -46,3 +46,16 @@ printerrorf(const char *fmt, ...)
va_end(ap);
exit(EXIT_CRITICAL);
}
+
+
+void
+printtipf(enum warning_class class, const char *fmt, ...)
+{
+ va_list ap;
+ if (warning_classes[class].action != IGNORE) {
+ va_start(ap, fmt);
+ fprintf(stderr, "%s: [tip] ", argv0);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ }
+}