shithub: ips

Download patch

ref: 6f56fbe53762de4ebc1b6386def8e8d0bc326385
parent: cb299c23ec8270a86863785b7b71fdb40efab2a3
author: Jacob Moody <moody@posixcafe.org>
date: Wed May 3 19:20:16 EDT 2023

ipspatch: use dump flag

--- a/ipspatch.c
+++ b/ipspatch.c
@@ -38,7 +38,8 @@
 		*sz = count;
 	} else if(Bread(ips, section + Hdrsz, *sz) != *sz)
 		sysfatal("short read of data: %r");
-	//fprint(2, "%ud %ud\n", *off, *sz);
+	if(dump)
+		fprint(2, "%ud %ud\n", *off, *sz);
 	return 1;
 }