common: fastboot: correct print format of partition size
authorChanho Park <chanho61.park@samsung.com>
Mon, 27 Jul 2015 02:41:11 +0000 (11:41 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 28 Jul 2015 08:49:32 +0000 (17:49 +0900)
This patch corrects print-out of the partition sizes because the partition
sizes are 64 bit sizes. Thus, we should change the format from %X to %llx.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
common/cmd_fastboot.c

index 7f5acca2d3dfbb9865d2713239f2528cb298a5e4..e5abff4321936d11a5943977f719157e2a9ff2ec 100644 (file)
@@ -2195,11 +2195,12 @@ void fastboot_flash_dump_ptn(void)
 #else
                printf("ptn %d name='%s' ", n, ptn->name);
                if (n == 0 || ptn->start)
-                       printf("start=0x%X ", ptn->start);
+                       printf("start=0x%llx ", ptn->start);
                else
                        printf("start=N/A ");
                if (ptn->length)
-                       printf("len=0x%X(~%dKB) ", ptn->length, ptn->length>>10);
+                       printf("len=0x%llx(~%lldKB) ", ptn->length,
+                                       ptn->length >> 10);
                else
                        printf("len=N/A ");