Merge pull request #60 from riscv/tim

Fix dmi_read() indentation; remove \n in LOG_ERROR
This commit is contained in:
Tim Newsome 2017-06-08 12:39:30 -07:00 committed by GitHub
commit 7af58e6283
1 changed files with 25 additions and 25 deletions

View File

@ -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();
} }