implemented _xdebugPrintf and _debugPrintf

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11294 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-02-09 16:02:05 +00:00
parent 4f985adf3a
commit db3e07c9e8
+20 -8
View File
@@ -55,11 +55,18 @@ _setDebugFlag(bool flag)
int int
_debugPrintf(const char * message, ...) _debugPrintf(const char *fmt, ...)
{ {
puts("*** _debugPrintf call - not yet implemented ***"); va_list ap;
printf("%s\n", message); int ret;
return 0;
// TODO : we need locking here
va_start(ap, fmt);
ret = vfprintf(stdout, fmt, ap);
va_end(ap);
return ret;
} }
@@ -73,11 +80,16 @@ _sPrintf(const char * message, ...)
int int
_xdebugPrintf(const char * message, ...) _xdebugPrintf(const char * fmt, ...)
{ {
puts("*** _xdebugPrintf call - not yet implemented ***"); va_list ap;
printf("%s\n", message); int ret;
return 0;
va_start(ap, fmt);
ret = vfprintf(stdout, fmt, ap);
va_end(ap);
return ret;
} }