display English descriptions not field variable names
authorTJ <hacker@iam.tj>
Fri, 8 Apr 2016 10:52:01 +0000 (11:52 +0100)
committerTJ <hacker@iam.tj>
Fri, 8 Apr 2016 10:52:01 +0000 (11:52 +0100)
firmware_header_dump.c

index daf5802..0594376 100644 (file)
@@ -1,7 +1,7 @@
 static const char *title =\
 "Broadcom Consumer Router Firmware Header Dump"
 ;
-static const float VERSION = 1.0f;
+static const float VERSION = 1.01f;
 
 static const char *copyright = \
 "Copyright 2015-2016 TJ <hacker@iam.tj>\n"
@@ -207,12 +207,12 @@ main(int argc, char **argv)
 
          } else {
            printf("Image Offset:  0x%08lx\n", offset + sizeof(IMAGE_TAG));
-           printf("%04lx imageNext: %u\n"
-                  "%04lx imageType: %s (%lu)\n"
-                  "%04lx imageSignature: %u\n"
-                  "%04lx imageLen: %s (0x%08lx)\n"
-                  "%04lx imageValidationToken: 0x%08x\n"
-                  "%04lx tagValidationToken: 0x%08x\n"
+           printf("%04lx Image Next: %u\n"
+                  "%04lx Image Type: %s (%lu)\n"
+                  "%04lx Image Signature: %u\n"
+                  "%04lx Image Len: %s (0x%08lx)\n"
+                  "%04lx Image Validation Token: 0x%08x\n"
+                  "%04lx Tag Validation Token: 0x%08x\n"
                   "\n",
                   offsetof(struct _IMAGE_TAG, imageNext), next,
                   offsetof(struct _IMAGE_TAG, imageType), image_type[atol(pimage->imageType)], atol(pimage->imageType),