1 #include <u.h> 2 #include <libc.h> 3 4 char* smprint(char * fmt,...)5 smprint(char *fmt, ...) 6 { 7 va_list args; 8 char *p; 9 10 va_start(args, fmt); 11 p = vsmprint(fmt, args); 12 va_end(args); 13 setmalloctag(p, getcallerpc(&fmt)); 14 return p; 15 } 16