From 08ecf5aae1c7276bb1e78a288cba3a731604758e Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 16 Aug 2002 15:03:06 +0000 Subject: Everything's broken :-P --- generic/generic.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'generic/generic.cpp') 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 #include +#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); } -- cgit v1.2.3