Browse Source
Merge pull request #1132 from YenHaoChen/pr-commit_log_print_value
fix print message of width=8 accesses
pull/1136/head
Scott Johnson
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
riscv/execute.cc
|
|
|
@ -27,7 +27,7 @@ static void commit_log_print_value(FILE *log_file, int width, const void *data) |
|
|
|
|
|
|
|
switch (width) { |
|
|
|
case 8: |
|
|
|
fprintf(log_file, "0x%01" PRIx8, *(const uint8_t *)data); |
|
|
|
fprintf(log_file, "0x%02" PRIx8, *(const uint8_t *)data); |
|
|
|
break; |
|
|
|
case 16: |
|
|
|
fprintf(log_file, "0x%04" PRIx16, *(const uint16_t *)data); |
|
|
|
|