From 66e15186ed81effc45a3e765da59e110e250fbe3 Mon Sep 17 00:00:00 2001 From: TJ Date: Fri, 8 Apr 2016 11:52:01 +0100 Subject: [PATCH] display English descriptions not field variable names --- firmware_header_dump.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/firmware_header_dump.c b/firmware_header_dump.c index daf5802..0594376 100644 --- a/firmware_header_dump.c +++ b/firmware_header_dump.c @@ -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 \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), -- 2.17.1