Correct the expection of DeviceInfo size am: 72abbbd36d
am: 015b828def
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2513015 Change-Id: I687627c7d540b5d04e3787e6c930b288948340e7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9258bfe861
1 changed files with 3 additions and 3 deletions
|
@ -467,16 +467,16 @@ ErrMsgOr<std::unique_ptr<cppbor::Map>> parseAndValidateDeviceInfo(
|
|||
case 3:
|
||||
if (isTeeDeviceInfo(*parsed) && parsed->size() != kNumTeeDeviceInfoEntries) {
|
||||
error += fmt::format(
|
||||
"Err: Incorrect number of device info entries. Expected {} but got"
|
||||
"Err: Incorrect number of device info entries. Expected {} but got "
|
||||
"{}\n",
|
||||
kNumTeeDeviceInfoEntries, parsed->size());
|
||||
}
|
||||
// TEE IRPC instances require all entries to be present in DeviceInfo. Non-TEE instances
|
||||
// may omit `os_version`
|
||||
if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries ||
|
||||
if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries &&
|
||||
parsed->size() != kNumTeeDeviceInfoEntries - 1)) {
|
||||
error += fmt::format(
|
||||
"Err: Incorrect number of device info entries. Expected {} or {} but got"
|
||||
"Err: Incorrect number of device info entries. Expected {} or {} but got "
|
||||
"{}\n",
|
||||
kNumTeeDeviceInfoEntries - 1, kNumTeeDeviceInfoEntries, parsed->size());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue