ref: 654450bc1da238c42bee28e9fccba57323a48884
parent: 384d4d2d6211544362d87a7e5a1392dd9c149092
author: mischief <mischief@offblast.org>
date: Mon Jan 5 15:02:01 EST 2015
vnc: put newlines in verbose messages
--- a/sys/src/cmd/vnc/auth.c
+++ b/sys/src/cmd/vnc/auth.c
@@ -113,13 +113,13 @@
strecpy(msg, msg+sizeof msg, version);
if(verbose)
- fprint(2, "server version: %s", msg);
+ fprint(2, "server version: %s\n", msg);
vncwrbytes(v, msg, VerLen);
vncflush(v);
vncrdbytes(v, msg, VerLen);
if(verbose)
- fprint(2, "client version: %s", msg);
+ fprint(2, "client version: %s\n", msg);
return 0;
}
@@ -135,7 +135,7 @@
return -1;
}
if(verbose)
- fprint(2, "server version: %s", msg);
+ fprint(2, "server version: %s\n", msg);
strcpy(msg, version);
vncwrbytes(v, msg, VerLen);
vncflush(v);
@@ -157,7 +157,7 @@
default:
werrstr("unknown auth type 0x%lux", auth);
if(verbose)
- fprint(2, "unknown auth type 0x%lux", auth);
+ fprint(2, "unknown auth type 0x%lux\n", auth);
return -1;
case AFailed:
@@ -169,7 +169,7 @@
case ANoAuth:
if(verbose)
- fprint(2, "no auth needed");
+ fprint(2, "no auth needed\n");
break;
case AVncAuth: