ref: d8a8ac237a5c08ce5a6fe990c213ffc0292a18dc
parent: 4d96bacd35e6afcf86e1791b0747ef752951b014
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jun 20 10:06:29 EDT 2019
cwfs: remove old some assert() debugging
--- a/sys/src/cmd/cwfs/main.c
+++ b/sys/src/cmd/cwfs/main.c
@@ -453,7 +453,6 @@
qlock(&reflock);
/* read 9P request from a network input process */
mb = fs_recv(serveq, 0);
- assert(mb->magic == Mbmagic);
/* fs kernel sets chan in /sys/src/fs/ip/il.c:/^getchan */
cp = mb->chan;
if (cp == nil)
--- a/sys/src/cmd/cwfs/sub.c
+++ b/sys/src/cmd/cwfs/sub.c
@@ -845,8 +845,7 @@
{
if(mb == nil)
return;
- assert(mb->magic == Mbmagic);
- if (mb->magic != Mbmagic)
+ if(mb->magic != Mbmagic)
panic("mbfree: bad magic 0x%lux", mb->magic);
if(mb->flags & BTRACE)
fprint(2, "mbfree: BTRACE cat=%d flags=%ux, caller %#p\n",
--- a/sys/src/cmd/cwfs/wren.c
+++ b/sys/src/cmd/cwfs/wren.c
@@ -48,7 +48,6 @@
d->wren.sddata = smprint("%s/data", d->wren.sddir);
}
- assert(d->wren.fd <= 0);
d->wren.fd = open(d->wren.sddata, ORDWR);
if (d->wren.fd < 0)
panic("wreninit: can't open %s for %Z: %r", d->wren.sddata, d);