uint32_t size, uint32_t count, uint8_t *buffer)
{
LOG_DEBUG("Reading memory at physical address 0x%" TARGET_PRIxADDR
- "; size %" PRId32 "; count %" PRId32, address, size, count);
+ "; size %" PRIu32 "; count %" PRIu32, address, size, count);
- if (count == 0 || buffer == NULL)
+ if (count == 0 || !buffer)
return ERROR_COMMAND_SYNTAX_ERROR;
ls1_sap_set_addr_high(target->tap, 0);
const uint8_t *buffer)
{
LOG_DEBUG("Writing memory at physical address 0x%" TARGET_PRIxADDR
- "; size %" PRId32 "; count %" PRId32, address, size, count);
+ "; size %" PRIu32 "; count %" PRIu32, address, size, count);
- if (count == 0 || buffer == NULL)
+ if (count == 0 || !buffer)
return ERROR_COMMAND_SYNTAX_ERROR;
ls1_sap_set_addr_high(target->tap, 0);