From 9f53f61ff4db12e8973e7083c24a3f1bb63a262c Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Mon, 12 Feb 2024 15:31:39 +0100 Subject: [PATCH] Turn off QEMU_DEBUG by default --- Makefile | 2 +- libcommon/qemu_debug.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c0ed876..7517e6e 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ CFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 \ -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common \ -fno-builtin-printf -fno-builtin-putchar -nostdlib -mno-relax -flto \ -Wall -Werror=implicit-function-declaration \ - -I $(INCLUDE) -I . -D QEMU_DEBUG + -I $(INCLUDE) -I . # -D QEMU_DEBUG AS = clang AR = llvm-ar diff --git a/libcommon/qemu_debug.c b/libcommon/qemu_debug.c index 25161a3..9286780 100644 --- a/libcommon/qemu_debug.c +++ b/libcommon/qemu_debug.c @@ -1,6 +1,7 @@ // Copyright (C) - Tillitis AB // SPDX-License-Identifier: GPL-2.0-only +#ifdef QEMU_DEBUG #include #include #include @@ -102,3 +103,4 @@ void qemu_hexdump(const uint8_t *buf, int len) qemu_lf(); } +#endif