From 27aee1bb93dcaebcfd8bcfc9fb3574cea48c18a6 Mon Sep 17 00:00:00 2001 From: ax-6 Date: Mon, 8 Jul 2024 23:46:52 +0800 Subject: [PATCH] Fixed a name error in debugger.h. --- aqvm/runtime/debugger/debugger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqvm/runtime/debugger/debugger.c b/aqvm/runtime/debugger/debugger.c index 8f68d35..923c57c 100644 --- a/aqvm/runtime/debugger/debugger.c +++ b/aqvm/runtime/debugger/debugger.c @@ -13,7 +13,7 @@ void AqvmRuntimeDebugger_OutputReport(uint8_t type, const char* code, const char* message, const char* other_info) { - const char* type = + const char* type_str = AqvmRuntimeDebugger_FormatReport(type, code, message, other_info); char time[28]; @@ -22,7 +22,7 @@ void AqvmRuntimeDebugger_OutputReport(uint8_t type, const char* code, fprintf(stderr, "{\"Time\":%s,\"Type\":%s,\"Code\":%s,\"Message\":%s,\"ErrnoInfo\":{" "\"Errno\":%d,\"Message\":\"%s\"},\"OtherInfo\":%s}\n", - time, type, code, message, errno, strerror(errno), other_info); + time, type_str, code, message, errno, strerror(errno), other_info); } const char* AqvmRuntimeDebugger_FormatReport(uint8_t type, const char* code,