1 #include <u.h> 2 #include <libc.h> 3 4 #define DOTDOT (&fmt+1) 5 6 void 7 werrstr(char *fmt, ...) 8 { 9 int psave; 10 char buf[ERRLEN]; 11 12 extern int printcol; 13 14 psave = printcol; 15 doprint(buf, buf+ERRLEN, fmt, DOTDOT); 16 errstr(buf); 17 printcol = psave; 18 } 19