summaryrefslogtreecommitdiffstats
path: root/runtime/user/emul.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/user/emul.h')
-rw-r--r--runtime/user/emul.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/user/emul.h b/runtime/user/emul.h
index 922c6e4c..d6f0853e 100644
--- a/runtime/user/emul.h
+++ b/runtime/user/emul.h
@@ -1,4 +1,11 @@
-#define vscnprintf vsnprintf
+
+int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
+{
+ int i;
+ i=vsnprintf(buf,size,fmt,args);
+ return (i >= size) ? (size - 1) : i;
+}
+
#define _stp_log printf
#undef smp_processor_id