changeset 405:f7df0f4d7d4f default tip

tfo/find-is-hdr.c: print found offset in hex
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 18 Mar 2023 05:57:23 +0000
parents ceb71478414d
children
files tfo/find-is-hdr.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tfo/find-is-hdr.c	Sat Mar 11 18:16:22 2023 +0000
+++ b/tfo/find-is-hdr.c	Sat Mar 18 05:57:23 2023 +0000
@@ -60,7 +60,8 @@
 		if ((filemap[offset + n * 16] & 1) != hdr_pattern[n])
 			return;
 	}
-	printf("Found IS_Header at offset %lu\n", (u_long) offset);
+	printf("Found IS_Header at offset %lu (0x%lx)\n", (u_long) offset,
+		(u_long) offset);
 }
 
 main(argc, argv)