diff options
author | Ryan Macdonald <rmac@sifive.com> | 2018-08-31 14:29:09 -0700 |
---|---|---|
committer | Ryan Macdonald <rmac@sifive.com> | 2018-08-31 14:29:09 -0700 |
commit | 3516fd50197acaeff8e933d0e67028b6582c1cb5 (patch) | |
tree | ee3605b877fdd1bae3142c633170f0c68fdd79b6 /src | |
parent | 583c90e87ccc30719d215ae8f7ed96c9374d69fc (diff) | |
download | riscv-openocd-3516fd50197acaeff8e933d0e67028b6582c1cb5.zip riscv-openocd-3516fd50197acaeff8e933d0e67028b6582c1cb5.tar.gz riscv-openocd-3516fd50197acaeff8e933d0e67028b6582c1cb5.tar.bz2 |
Style fixes
Signed-off-by: Ryan Macdonald <rmac@sifive.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/riscv/riscv-013.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index ed1127e..c1cae62 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -3008,7 +3008,8 @@ static int riscv013_test_sba_config_reg(struct target *target, } 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; } @@ -3224,8 +3225,7 @@ static int riscv013_test_sba_config_reg(struct target *target, if (tests_failed == 0) { LOG_INFO("ALL TESTS PASSED"); return ERROR_OK; - } - else { + } else { LOG_ERROR("%d TESTS FAILED", tests_failed); return ERROR_FAIL; } @@ -3854,8 +3854,7 @@ int riscv013_test_compliance(struct target *target) if (total_tests == passed_tests) { LOG_INFO("ALL TESTS PASSED\n"); return ERROR_OK; - } - else { + } else { LOG_INFO("%d TESTS FAILED\n", failed_tests); return ERROR_FAIL; } |