Print device sizes in MB/GB not MiB/GiB since that's how SD/MMC cards
are sold.
Cache device parent rather than requesting it multiple times in a
look to save a few cycles.