Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Add index to message for invalid command
Browse files Browse the repository at this point in the history
  • Loading branch information
nanase committed Mar 10, 2018
1 parent a797b33 commit 3364b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ymf825reader/ymf825.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ymf825_play(Ymf825* ymf825, const uint8_t* file, int64_t file_size) {
break;

default:
printf("invalid command %2x\n", command);
printf("invalid command 0x%2x (in index 0x%2llx)\n", command, index - 1);
exit(1);
break;
}
Expand Down

0 comments on commit 3364b3e

Please sign in to comment.