_sPrintf implemented
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
39c9d198ea
commit
ec4fd18f03
@ -95,10 +95,23 @@ _debugPrintf(const char *fmt, ...)
|
||||
|
||||
|
||||
int
|
||||
_sPrintf(const char * message, ...)
|
||||
_sPrintf(const char *fmt, ...)
|
||||
{
|
||||
puts("*** _sPrintf call - not yet implemented ***");
|
||||
printf("%s\n", message);
|
||||
va_list ap;
|
||||
int ret;
|
||||
char buffer[256]; // seems to be the size used in R5
|
||||
|
||||
// TODO : we need locking here
|
||||
|
||||
va_start(ap, fmt);
|
||||
ret = vsnprintf(buffer, 256, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (!ret)
|
||||
return ret;
|
||||
|
||||
_kern_debug_output(buffer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user