Style fixes

Signed-off-by: Ryan Macdonald <rmac@sifive.com>
This commit is contained in:
Ryan Macdonald 2018-08-31 14:29:09 -07:00
parent 583c90e87c
commit 3516fd5019
1 changed files with 4 additions and 5 deletions

View File

@ -3008,7 +3008,8 @@ static int riscv013_test_sba_config_reg(struct target *target,
} }
if (get_field(sbcs, DMI_SBCS_SBVERSION) != 1) { if (get_field(sbcs, DMI_SBCS_SBVERSION) != 1) {
LOG_ERROR("System Bus Access unsupported SBVERSION (%d). Only version 1 is supported.", get_field(sbcs, DMI_SBCS_SBVERSION)); LOG_ERROR("System Bus Access unsupported SBVERSION (%d). Only version 1 is supported.",
get_field(sbcs, DMI_SBCS_SBVERSION));
return ERROR_FAIL; return ERROR_FAIL;
} }
@ -3224,8 +3225,7 @@ static int riscv013_test_sba_config_reg(struct target *target,
if (tests_failed == 0) { if (tests_failed == 0) {
LOG_INFO("ALL TESTS PASSED"); LOG_INFO("ALL TESTS PASSED");
return ERROR_OK; return ERROR_OK;
} } else {
else {
LOG_ERROR("%d TESTS FAILED", tests_failed); LOG_ERROR("%d TESTS FAILED", tests_failed);
return ERROR_FAIL; return ERROR_FAIL;
} }
@ -3854,8 +3854,7 @@ int riscv013_test_compliance(struct target *target)
if (total_tests == passed_tests) { if (total_tests == passed_tests) {
LOG_INFO("ALL TESTS PASSED\n"); LOG_INFO("ALL TESTS PASSED\n");
return ERROR_OK; return ERROR_OK;
} } else {
else {
LOG_INFO("%d TESTS FAILED\n", failed_tests); LOG_INFO("%d TESTS FAILED\n", failed_tests);
return ERROR_FAIL; return ERROR_FAIL;
} }