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:
@@ -53,13 +53,20 @@ _setDebugFlag(bool flag)
|
|||||||
return previous;
|
return previous;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user