shithub: fsgen

Download patch

ref: 37b9bf68546c68257532c11f64e3685722144c4e
parent: d7de4a7c8e5532dd8ac6f63616836c03ef9bd4d5
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Dec 16 06:12:04 EST 2025

cleanup debug prints

--- a/code.c
+++ b/code.c
@@ -65,7 +65,6 @@
 	print("static void\n%s(Req *r", buf);
 	printvars(file, ", char *");
 	print(")\n");
-	fprint(2, "function: %s for file %s\n", buf, file->path);
 }
 
 void
@@ -192,7 +191,6 @@
 	Vqid *v;
 	
 	for (v = parent->children; v; v = v->next) {
-		fprint(2, "compare %s == %s\n", v->name, child);
 		if (strcmp(v->name, child) == 0)
 			return v;
 	}
@@ -213,13 +211,11 @@
 		vqids->name = "root";
 		vqids->vfile = f;
 		vqids->vfile->isdir = 1;
-		fprint(2, "root qid\n");
 	}
 	
 	v = vqids;
 	for (a = f->parts; *a; a++) {
 		s = *a;
-		fprint(2, "walk: %s\n", s);
 		if (*s == 0) {
 			/* if root element */
 			continue;
@@ -226,11 +222,9 @@
 		}
 		nv = findchild(v, s);
 		if (nv) {
-			fprint(2, "child %s of %s exists\n", s, v->vfile->path);
 			v = nv;
 			continue;
 		}
-		fprint(2, "create child %s of %s\n", s, v->vfile->path);
 		nv = mallocz(sizeof(Vqid), 1);
 		pathtostring(buf, sizeof(buf), f->path+1);
 		nv->name = strdup(buf);
--- a/main.c
+++ b/main.c
@@ -144,7 +144,6 @@
 				currentfile = addfile(s);
 				if (!currentfile)
 					goto Err;
-				fprint(2, "new file: %s\n", currentfile->path);
 				state = HASFILE;
 				break;
 			}
--