target/riscv: Change 'authdata_read' output
authorMarc Schink <dev@zapb.de>
Fri, 30 Apr 2021 08:51:35 +0000 (10:51 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 8 May 2021 08:49:52 +0000 (09:49 +0100)
Use a constant output length and remove the line break to make the
authentication data easier to parse.

Change-Id: Iebbf1f171947ef89b0f360a2cb286a4ea15c6ba5
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6199
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tim Newsome <tim@sifive.com>
src/target/riscv/riscv.c

index c883b420300675fb342f3190d8d0900f18c8afc2..1e93ded9e6da15dd9d90c5ebfb534ca9e632fddb 100644 (file)
@@ -2372,7 +2372,7 @@ COMMAND_HANDLER(riscv_authdata_read)
                uint32_t value;
                if (r->authdata_read(target, &value) != ERROR_OK)
                        return ERROR_FAIL;
-               command_print(CMD, "0x%" PRIx32, value);
+               command_print_sameline(CMD, "0x%08" PRIx32, value);
                return ERROR_OK;
        } else {
                LOG_ERROR("authdata_read is not implemented for this target.");