diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-10-09 10:03:51 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-10-09 12:16:50 -0700 |
commit | 2a377da2f6b2577cd15698e39e1a003b3c632709 (patch) | |
tree | 9429060d4629b2e300602a646c3e82c460f434d1 /fastboot/device/variables.cpp | |
parent | f3186de123c742166ec5e61b27b61af3ef929dfb (diff) |
Return partition size in hex format.
This is required to pass fuzzy_fastboot conformance tests.
Also, allow for zero sized partitions in fuzzy_fastboot.
Test: ./fuzzy_fastboot --gtest_filter=Conformance.Slots
Bug: 117220134
Change-Id: Ifb12994a7796b081215084cb68b37674210aaa12
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 2de79b18d..a7f8ba84d 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -289,7 +289,7 @@ bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& ar bool is_zero_length; if (LogicalPartitionExists(args[0], device->GetCurrentSlot(), &is_zero_length) && is_zero_length) { - *message = "0"; + *message = "0x0"; return true; } // Otherwise, open the partition as normal. |