target/mips64: Replace printf() with LOG_ERROR()
authorMarc Schink <dev@zapb.de>
Mon, 28 Jun 2021 11:08:48 +0000 (13:08 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 2 Jul 2021 16:14:11 +0000 (17:14 +0100)
Change-Id: I73956dc3485a23b761aecd869cc37d657c393bde
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6334
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/mips64_pracc.c

index dbad248fcd4288b55c930e15d19e40ad1e1e96cb..64abf5727cc3e9577eb044d1101809744873a26b 100644 (file)
@@ -283,7 +283,7 @@ int mips64_pracc_exec(struct mips_ejtag *ejtag_info,
                if (ejtag_ctrl & EJTAG_CTRL_PRNW) {
                        retval = mips64_pracc_exec_write(&ctx, address);
                        if (retval != ERROR_OK) {
-                               printf("ERROR mips64_pracc_exec_write\n");
+                               LOG_ERROR("mips64_pracc_exec_write() failed");
                                return retval;
                        }
                } else {
@@ -296,7 +296,7 @@ int mips64_pracc_exec(struct mips_ejtag *ejtag_info,
                        }
                        retval = mips64_pracc_exec_read(&ctx, address);
                        if (retval != ERROR_OK) {
-                               printf("ERROR mips64_pracc_exec_read\n");
+                               LOG_ERROR("mips64_pracc_exec_read() failed");
                                return retval;
                        }