Merge pull request #60 from riscv/tim
Fix dmi_read() indentation; remove \n in LOG_ERROR
This commit is contained in:
commit
7af58e6283
|
@ -378,13 +378,13 @@ static uint64_t dmi_read(struct target *target, uint16_t address)
|
||||||
} else if (status == DMI_STATUS_SUCCESS) {
|
} else if (status == DMI_STATUS_SUCCESS) {
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR("failed read from 0x%x, status=%d\n", address, status);
|
LOG_ERROR("failed read from 0x%x, status=%d", address, status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != DMI_STATUS_SUCCESS) {
|
if (status != DMI_STATUS_SUCCESS) {
|
||||||
LOG_ERROR("Failed read from 0x%x; value=0x%" PRIx64 ", status=%d\n",
|
LOG_ERROR("Failed read from 0x%x; value=0x%" PRIx64 ", status=%d",
|
||||||
address, value, status);
|
address, value, status);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
@ -406,7 +406,7 @@ static uint64_t dmi_read(struct target *target, uint16_t address)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != DMI_STATUS_SUCCESS) {
|
if (status != DMI_STATUS_SUCCESS) {
|
||||||
LOG_ERROR("Failed read (NOP) from 0x%x; value=0x%" PRIx64 ", status=%d\n",
|
LOG_ERROR("Failed read (NOP) from 0x%x; value=0x%" PRIx64 ", status=%d",
|
||||||
address, value, status);
|
address, value, status);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue