ref: 464817ecf1a2d1486d7c265415e404a3c9298ee5
parent: c7e25f71b4b4705e2dde15ceb497e4091b121c7e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Nov 1 07:10:08 EDT 2022
lib9p: fix missing newlines in fprint()
--- a/sys/src/lib9p/listen.c
+++ b/sys/src/lib9p/listen.c
@@ -47,7 +47,7 @@
os = v;
ctl = announce(os->addr, dir);
if(ctl < 0){
- fprint(2, "%s: announce %s: %r", argv0, os->addr);
+ fprint(2, "%s: announce %s: %r\n", argv0, os->addr);
return;
}
@@ -54,7 +54,7 @@
for(;;){
nctl = listen(dir, ndir);
if(nctl < 0){
- fprint(2, "%s: listen %s: %r", argv0, os->addr);
+ fprint(2, "%s: listen %s: %r\n", argv0, os->addr);
break;
}
--- a/sys/src/lib9p/srv.c
+++ b/sys/src/lib9p/srv.c
@@ -895,7 +895,7 @@
qlock(&srv->wlock);
n = convS2M(&r->ofcall, srv->wbuf, srv->msize);
if(n <= 0){
- fprint(2, "msize = %d n = %d %F\n", srv->msize, n, &r->ofcall);
+ fprint(2, "%s: msize = %d n = %d %F\n", argv0, srv->msize, n, &r->ofcall);
abort();
}
assert(n > 2);
@@ -903,7 +903,7 @@
closereq(removereq(r->pool, r->ifcall.tag));
m = write(srv->outfd, srv->wbuf, n);
if(m != n)
- fprint(2, "lib9p srv: write %d returned %d on fd %d: %r", n, m, srv->outfd);
+ fprint(2, "%s: 9p write %d returned %d on fd %d: %r\n", argv0, n, m, srv->outfd);
qunlock(&srv->wlock);
qlock(&r->lk); /* no one will add flushes now */