aboutsummaryrefslogtreecommitdiffstats
path: root/common/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/log.cc')
-rw-r--r--common/log.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/log.cc b/common/log.cc
index df5430bb..e30449ad 100644
--- a/common/log.cc
+++ b/common/log.cc
@@ -46,6 +46,18 @@ void (*log_error_atexit)() = NULL;
// static bool next_print_log = false;
static int log_newline_count = 0;
+std::string stringf(const char *fmt, ...)
+{
+ std::string string;
+ va_list ap;
+
+ va_start(ap, fmt);
+ string = vstringf(fmt, ap);
+ va_end(ap);
+
+ return string;
+}
+
std::string vstringf(const char *fmt, va_list ap)
{
std::string string;