ac97: Fix codec ID printout

This commit is contained in:
RichardG867
2023-05-03 20:55:07 -03:00
parent 837262a52e
commit a4773ae731

View File

@@ -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");