]> git.zerfleddert.de Git - rsbs2/commitdiff
show length of properties (they are files, too)
authorMichael Gernoth <michael@gernoth.net>
Sat, 31 Jan 2009 12:11:50 +0000 (13:11 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sat, 31 Jan 2009 12:11:50 +0000 (13:11 +0100)
firmware.c

index 2c9960fa7436ad745160b512977e108db2c3475e..40c2b56c32e7d794f3654f9e39be5ff677bc44f6 100644 (file)
@@ -76,13 +76,13 @@ void show_properties(unsigned char *fw, int len)
                        }
 
                        if (prop->right_rw == 0x00 && prop->rw_mask == 0x00) {
                        }
 
                        if (prop->right_rw == 0x00 && prop->rw_mask == 0x00) {
-                               printf("(R-) ");
+                               printf("(R-)");
                        } else if (prop->right_rw == 0x01) {
                        } else if (prop->right_rw == 0x01) {
-                               printf("(RW mask: 0x%02x) ", prop->rw_mask);
+                               printf("(RW mask: 0x%02x)", prop->rw_mask);
                        } else {
                        } 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)));
                }
        }
 }
                }
        }
 }
Impressum, Datenschutz