diff options
author | David Anderson <dvander@google.com> | 2018-09-04 16:22:41 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-09-04 16:25:06 -0700 |
commit | 4758967bf91c557318f21b4b76982c981258adb5 (patch) | |
tree | 89050c5e1d88968d41127e4fdee97d992d384363 /fastboot/device/variables.cpp | |
parent | 6c30f6e3d28345740bec510db7ea6747c1fcc6e0 (diff) |
fastbootd: Fix partition size testing issues.
Partition sizes must be reported with an "0x" prefix for fuzzy_fastboot.
Also, with dynamic partitions, the size of a partition can be 0.
Bug: 78793464
Test: fuzzy_fastboot Conformance.PartitionInfo does not error on
partition sizes when using fastbootd
Change-Id: I4148440bd9ed420878940829618cbf8cee85bf6a
Diffstat (limited to 'fastboot/device/variables.cpp')
-rw-r--r-- | fastboot/device/variables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp index 9f3fa7597..91e844aa6 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -191,7 +191,7 @@ bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& ar return false; } uint64_t size = get_block_device_size(handle.fd()); - *message = android::base::StringPrintf("%" PRIX64, size); + *message = android::base::StringPrintf("0x%" PRIX64, size); return true; } |