mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-22 01:25:35 -07:00
ac97: Fix codec ID printout
This commit is contained in:
@@ -121,7 +121,9 @@ codec_probe(uint16_t (*codec_read)(uint8_t reg),
|
||||
|
||||
/* Generate and print dump file name. */
|
||||
sprintf(buf, "COD%02X%02X%d.BIN", bus, dev, func);
|
||||
printf("Saving codec %c%c%c%02X register dump to %s\n", regs[0x7e >> 1] >> 8, regs[0x7e >> 1] & 0xff, regs[0x7f >> 1] >> 8, regs[0x7f >> 1] & 0xff, buf);
|
||||
printf("Saving codec %c%c%c%02X register dump to %s\n",
|
||||
(uint8_t) (regs[0x7d >> 1] >> 8), (uint8_t) regs[0x7d >> 1], (uint8_t) (regs[0x7e >> 1] >> 8), (uint8_t) regs[0x7e >> 1],
|
||||
buf);
|
||||
|
||||
/* Write dump file. */
|
||||
f = fopen(buf, "wb");
|
||||
|
||||
Reference in New Issue
Block a user