plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

debug.c (200B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <venti.h>
      4 
      5 void
      6 vtdebug(VtConn *z, char *fmt, ...)
      7 {
      8 	va_list arg;
      9 
     10 	if(z->debug == 0)
     11 		return;
     12 
     13 	va_start(arg, fmt);
     14 	vfprint(2, fmt, arg);
     15 	va_end(arg);
     16 }