shithub: riscv

Download patch

ref: c4603260f8736dbea8d7f47c46e8db0cf1a23fa0
parent: 1da5285c1ef5150205f85a56e8fa5fdc2bb48444
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 14 16:32:26 EDT 2018

ndb/cs: remove paranoia debug toggle

--- a/sys/src/cmd/ndb/cs.c
+++ b/sys/src/cmd/ndb/cs.c
@@ -80,7 +80,6 @@
 Mlist	*mlist;
 int	mfd[2];
 int	debug;
-int	paranoia;
 int	ipv6lookups = 1;
 jmp_buf	masterjmp;	/* return through here after a slave process has been created */
 int	*isslave;	/* *isslave non-zero means this is a slave process */
@@ -127,7 +126,6 @@
 QLock	netlock;	/* mutex for netinit() */
 
 char	*logfile = "cs";
-char	*paranoiafile = "cs.paranoia";
 
 char	mntpt[Maxpath];
 char	netndb[Maxpath];
@@ -809,15 +807,6 @@
 	}
 
 	/*
-	 *  toggle debugging
-	 */
-	if(strncmp(job->request.data, "paranoia", 8)==0){
-		paranoia ^= 1;
-		syslog(1, logfile, "paranoia %d", paranoia);
-		goto send;
-	}
-
-	/*
 	 *  add networks to the default list
 	 */
 	if(strncmp(job->request.data, "add ", 4)==0){
@@ -856,8 +845,6 @@
 
 	if(debug)
 		syslog(0, logfile, "write %s", job->request.data);
-	if(paranoia)
-		syslog(0, paranoiafile, "write %s by %s", job->request.data, mf->user);
 	/*
 	 *  break up name
 	 */