shithub: gefs

Download patch

ref: a1d44aa288dae05ff87db25a10ad3fc6a1f0e640
parent: 39519029e4e47c669e56f4fe3f35b1e782b4fc5b
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 25 23:53:46 EST 2023

blk: show block addr in panic

--- a/blk.c
+++ b/blk.c
@@ -737,7 +737,7 @@
 			ck = b->bp.hash;
 		}
 		if(ck != xh)
-			broke("%s: %llux != %llux", Ecorrupt, xh, ck);
+			broke("%s: %ullx %llux != %llux", Ecorrupt, bp.addr, xh, ck);
 	}
 	b->bp.gen = bp.gen;
 	b->lasthold = getcallerpc(&bp);