use scsi_get/set_uint16/32/64 in tests
Fixes ARM problems too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -52,7 +52,7 @@ test_prin_read_keys_simple(void)
|
||||
}
|
||||
|
||||
logging(LOG_VERBOSE, "Test ADDITIONAL_LENGTH matches DATA_IN size.");
|
||||
al = ntohl(*(uint32_t *)&task->datain.data[4]);
|
||||
al = scsi_get_uint32(&task->datain.data[4]);
|
||||
if (al != task->datain.size - 8) {
|
||||
logging(LOG_NORMAL,
|
||||
"[FAILED] ADDITIONAL_LENGTH was %d bytes but %d was expected.",
|
||||
|
||||
Reference in New Issue
Block a user