shithub: gefs

Download patch

ref: ab70b494791bbd0acdc395225db38b46012f8da8
parent: 4cc5ea3405e2cdc000a2788c0d2429ec8078ac7a
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Nov 22 21:53:50 EST 2023

fs: remove debug print

--- a/cache.c
+++ b/cache.c
@@ -177,7 +177,7 @@
 	if(checkflag(b, Bcached))
 		cachedel_lk(b->bp.addr);
 	if(checkflag(b, Bcached))
-		print("%B cached %#p freed %#p\n", b->bp, b->cached, b->freed);
+		fprint(2, "%B cached %#p freed %#p\n", b->bp, b->cached, b->freed);
 	lrudel(b);
 	assert(!checkflag(b, Bcached));
 	b->flag = 0;
--- a/fs.c
+++ b/fs.c
@@ -912,7 +912,6 @@
 	 */
 	if(permissive && strcmp(aname, "adm") == 0)
 		n = "adm";
-print("permissive: %d, name2user %s aname: %s\n", permissive, n, aname);
 	if((u = name2user(n)) == nil){
 		runlock(&fs->userlk);
 		error(Enouser);