From fdedb3abd143958437b962b1ca73778f3e6d6d88 Mon Sep 17 00:00:00 2001 From: Yinan Xu Date: Mon, 26 Oct 2020 09:59:25 +0800 Subject: [PATCH] emu: move compile time printf to emu.cpp --- src/test/csrc/emu.cpp | 1 + src/test/csrc/ram.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/csrc/emu.cpp b/src/test/csrc/emu.cpp index 5c0909016..38c8f8783 100644 --- a/src/test/csrc/emu.cpp +++ b/src/test/csrc/emu.cpp @@ -74,6 +74,7 @@ Emulator::Emulator(int argc, const char *argv[]): cycles(0), hascommit(0), trapCode(STATE_RUNNING) { args = parse_args(argc, argv); + printf("Emu compiled at %s, %s UTC\n", __DATE__, __TIME__); // srand srand(args.seed); diff --git a/src/test/csrc/ram.cpp b/src/test/csrc/ram.cpp index c9c4ff60f..a7155630b 100644 --- a/src/test/csrc/ram.cpp +++ b/src/test/csrc/ram.cpp @@ -100,7 +100,6 @@ void init_ram(const char *img) { assert(0); } - printf("Emu compiled at %s, %s\n", __DATE__, __TIME__); printf("The image is %s\n", img); fseek(fp, 0, SEEK_END); -- GitLab