From a519eca7833d8a0bdc4646def0b33097d44b39ef Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 31 Jan 2009 13:11:50 +0100 Subject: [PATCH 1/1] show length of properties (they are files, too) --- firmware.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware.c b/firmware.c index 2c9960f..40c2b56 100644 --- a/firmware.c +++ b/firmware.c @@ -76,13 +76,13 @@ void show_properties(unsigned char *fw, int len) } if (prop->right_rw == 0x00 && prop->rw_mask == 0x00) { - printf("(R-) "); + printf("(R-)"); } else if (prop->right_rw == 0x01) { - printf("(RW mask: 0x%02x) ", prop->rw_mask); + printf("(RW mask: 0x%02x)", prop->rw_mask); } else { - printf("(UNK 0x%02x 0x%02x) ", prop->right_rw, prop->rw_mask); + printf("(UNK 0x%02x 0x%02x)", prop->right_rw, prop->rw_mask); } - printf("\n"); + printf(", length: %d\n", *((unsigned int*)(fw + i - 4))); } } } -- 2.39.5