X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fflash%2Fflash.c;h=464b8760b54db8cdd2d8b51564f9dbdcf5a81b26;hp=1384118a59ec0e87befbf3e6f558032f6591b669;hb=9a5c9c9331f0c0c539cad423a4654015598b0d9d;hpb=87fa4885310b6c6b79e31d79d192ba9ea90cf236 diff --git a/lib/flash/flash.c b/lib/flash/flash.c index 1384118..464b876 100644 --- a/lib/flash/flash.c +++ b/lib/flash/flash.c @@ -36,7 +36,7 @@ struct flash_info { /* Device information */ struct blocklevel_device *bl; struct ffs_handle *ffs; - uint32_t size; /* raw size of partition */ + uint64_t size; /* raw size of partition */ const char *path; bool ecc; uint32_t erase_granule; @@ -124,7 +124,7 @@ static struct flash_info *flash_setup_buffer(void *ctx, const char *partition) pb_debug("%s Details\n", partition); pb_debug("\tName\t\t%s\n", info->path); - pb_debug("\tFlash Size\t%u\n", info->size); + pb_debug("\tFlash Size\t%lu\n", info->size); pb_debug("\tGranule\t\t%u\n", info->erase_granule); pb_debug("\tECC\t\t%s\n", info->ecc ? "Protected" : "Unprotected"); pb_debug("\tCurrent Side info:\n");