From 5905afeb79026f6d66207024861c0dd8dffef0b4 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 14 Feb 2022 12:13:14 -0300 Subject: [PATCH] ac97: Fix register dumping in silent mode --- ac97/ac97.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ac97/ac97.c b/ac97/ac97.c index f6a2095..adcbab6 100644 --- a/ac97/ac97.c +++ b/ac97/ac97.c @@ -92,7 +92,8 @@ codec_probe(uint16_t (*codec_read)(uint8_t reg), /* Read and print the word value. */ *regp = codec_read(cur_reg); - if (!silent) printf(" %04X", *regp++); + if (!silent) printf(" %04X", *regp); + regp++; cur_reg += 2; } while (cur_reg & 0x0f);