Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: mt76: Remove blank line after mt792x firmware version dmesg

An extra blank line gets printed after printing firmware version
because the build date is null terminated. Remove the "\n" from
dev_info() calls to print firmware version and build date to fix
the problem.

Reported-by: Mario Limonciello <superm1@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Shuah Khan and committed by
Linus Torvalds
b69053dd af7809f0

+3 -3
+3 -3
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
··· 3019 3019 } 3020 3020 3021 3021 hdr = (const void *)(fw->data + fw->size - sizeof(*hdr)); 3022 - dev_info(dev->dev, "WM Firmware Version: %.10s, Build Time: %.15s\n", 3022 + dev_info(dev->dev, "WM Firmware Version: %.10s, Build Time: %.15s", 3023 3023 hdr->fw_ver, hdr->build_date); 3024 3024 3025 3025 ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, false); ··· 3048 3048 } 3049 3049 3050 3050 hdr = (const void *)(fw->data + fw->size - sizeof(*hdr)); 3051 - dev_info(dev->dev, "WA Firmware Version: %.10s, Build Time: %.15s\n", 3051 + dev_info(dev->dev, "WA Firmware Version: %.10s, Build Time: %.15s", 3052 3052 hdr->fw_ver, hdr->build_date); 3053 3053 3054 3054 ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, true); ··· 3124 3124 } 3125 3125 3126 3126 hdr = (const void *)fw->data; 3127 - dev_info(dev->dev, "HW/SW Version: 0x%x, Build Time: %.16s\n", 3127 + dev_info(dev->dev, "HW/SW Version: 0x%x, Build Time: %.16s", 3128 3128 be32_to_cpu(hdr->hw_sw_ver), hdr->build_date); 3129 3129 3130 3130 for (i = 0; i < be32_to_cpu(hdr->desc.n_region); i++) {