From: Michael Gernoth Date: Sat, 31 Jan 2009 12:11:50 +0000 (+0100) Subject: show length of properties (they are files, too) X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/a519eca7833d8a0bdc4646def0b33097d44b39ef show length of properties (they are files, too) --- 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))); } } }