From 9291e2deedfb8dede05ccafba1f6035e3c378218 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 22 Jul 2013 14:52:51 -0700 Subject: [PATCH] Don't use stdout for debugging --- riscv/interactive.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/riscv/interactive.cc b/riscv/interactive.cc index 6117d01..66ea487 100644 --- a/riscv/interactive.cc +++ b/riscv/interactive.cc @@ -150,7 +150,7 @@ reg_t sim_t::get_freg(const std::vector& args) void sim_t::interactive_reg(const std::string& cmd, const std::vector& args) { - printf("0x%016" PRIx64 "\n", get_reg(args)); + fprintf(stderr, "0x%016" PRIx64 "\n", get_reg(args)); } union fpr @@ -164,14 +164,14 @@ void sim_t::interactive_fregs(const std::string& cmd, const std::vector& args) { fpr f; f.r = get_freg(args); - printf("%g\n",f.d); + fprintf(stderr, "%g\n",f.d); } reg_t sim_t::get_mem(const std::vector& args) @@ -215,7 +215,7 @@ reg_t sim_t::get_mem(const std::vector& args) void sim_t::interactive_mem(const std::string& cmd, const std::vector& args) { - printf("0x%016" PRIx64 "\n", get_mem(args)); + fprintf(stderr, "0x%016" PRIx64 "\n", get_mem(args)); } void sim_t::interactive_str(const std::string& cmd, const std::vector& args) -- 2.30.2