diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-11-01 11:10:08 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-11-01 11:10:08 +0000 |
commit | 464817ecf1a2d1486d7c265415e404a3c9298ee5 (patch) | |
tree | 00443438c75845cdf099080b29d90f95d93e9127 /sys | |
parent | c7e25f71b4b4705e2dde15ceb497e4091b121c7e (diff) |
lib9p: fix missing newlines in fprint()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/lib9p/listen.c | 4 | ||||
-rw-r--r-- | sys/src/lib9p/srv.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/lib9p/listen.c b/sys/src/lib9p/listen.c index b093bc287..8944742e4 100644 --- a/sys/src/lib9p/listen.c +++ b/sys/src/lib9p/listen.c @@ -47,14 +47,14 @@ listenproc(void *v) 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; } 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; } diff --git a/sys/src/lib9p/srv.c b/sys/src/lib9p/srv.c index 63475ab66..35c78e1ec 100644 --- a/sys/src/lib9p/srv.c +++ b/sys/src/lib9p/srv.c @@ -895,7 +895,7 @@ if(chatty9p) 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 @@ if(chatty9p) 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 */ |