cli_classic: Use flashrom_flash_getsize() over raw access

Use native libflashrom entry-points for getting flash
size over accessing internal struct members within cli
code.

Tested: `sudo ./flashrom -p internal --get-size`.

flashrom-stable: Squashed fixup for format string

Change-Id: Iff70a0de1dee517c4e38c45b1540c42326a13340
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/61583
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72296
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
1 file changed