new venti library.
This commit is contained in:
parent
9df487d720
commit
056fe1ba7f
28 changed files with 4635 additions and 0 deletions
17
src/libventi/debug.c
Normal file
17
src/libventi/debug.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <venti.h>
|
||||
|
||||
void
|
||||
vtdebug(VtConn *z, char *fmt, ...)
|
||||
{
|
||||
va_list arg;
|
||||
|
||||
if(z->debug == 0)
|
||||
return;
|
||||
|
||||
va_start(arg, fmt);
|
||||
vfprint(2, fmt, arg);
|
||||
va_end(arg);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue