ref: 607e651c0636bd2a73d7888ef1cea863f0bd5c53
parent: 24420ab9eb9124dd2ac032beacd84e4a2f6ddf56
author: cinap_lenrek <[email protected]>
date: Sun Apr 30 00:06:03 EDT 2017
vnc: substitute iprint() with fprint(2, (gone from libmemdraw)
--- a/sys/src/cmd/vnc/devdraw.c
+++ b/sys/src/cmd/vnc/devdraw.c
@@ -1265,7 +1265,7 @@
char *p, *q;
int s;
- if(1|| plsprnt==0){
+ if(plsprnt==0){
SET(s,q,p);
USED(fmt, a, buf, p, q, s);
return;
@@ -1305,7 +1305,7 @@
}
*q++ = '\n';
*q = 0;
- iprint("%.*s", (int)(q-buf), buf);
+ fprint(2, "%.*s", (int)(q-buf), buf);
}
void
@@ -1333,7 +1333,6 @@
fmt = nil;
if(waserror()){
if(fmt) printmesg(fmt, a, 1);
- /* iprint("error: %s\n", up->error); */
nexterror();
}
while((n-=m) > 0){