summaryrefslogtreecommitdiff
path: root/generic/generic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generic/generic.cpp')
-rw-r--r--generic/generic.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/generic.cpp b/generic/generic.cpp
index d165d27..bade101 100644
--- a/generic/generic.cpp
+++ b/generic/generic.cpp
@@ -20,11 +20,13 @@
#include <stdio.h>
#include <stdarg.h>
+#include "String.h"
+
char verbosity = 0;
char * heads[] = {"EE", "--", "WW", "II"};
-void printm(int level, char * m, ...) {
+void printm(int level, String m, ...) {
va_list ap;
if (verbosity < level) {
@@ -36,7 +38,7 @@ void printm(int level, char * m, ...) {
}
va_start(ap, m);
- vfprintf(stderr, m, ap);
+ vfprintf(stderr, m.to_charp(), ap);
va_end(ap);
}