Skip to content

Commit

Permalink
Fixed a name error in debugger.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Jul 8, 2024
1 parent 904009e commit 27aee1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aqvm/runtime/debugger/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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,
Expand Down

0 comments on commit 27aee1b

Please sign in to comment.