Fix: lab3 on-board problems

This commit is contained in:
ytshih committed 2025-04-08 07:01:56 +08:00
1 parent 2d572cea4d
commit 93bbddf364
7 files changed
+62 -21

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ static inline char *_logger_string(char *dest, const char *src)
}
static inline char *_logger_hex(char *dest, uint64_t x)
{
for (int n, c = 28; c >= 0; c -= 4) {
for (int n, c = 60; c >= 0; c -= 4) {
n = (x >> c) & 0xf;
n += (n > 9) ? 0x37 : 0x30;
*dest++ = (char)n;