Skip to content

Commit b69053d

Browse files
shuahkhtorvalds
authored andcommitted
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>
1 parent af7809f commit b69053d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3019,7 +3019,7 @@ int mt76_connac2_load_ram(struct mt76_dev *dev, const char *fw_wm,
30193019
}
30203020

30213021
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",
30233023
hdr->fw_ver, hdr->build_date);
30243024

30253025
ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, false);
@@ -3048,7 +3048,7 @@ int mt76_connac2_load_ram(struct mt76_dev *dev, const char *fw_wm,
30483048
}
30493049

30503050
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",
30523052
hdr->fw_ver, hdr->build_date);
30533053

30543054
ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, true);
@@ -3124,7 +3124,7 @@ int mt76_connac2_load_patch(struct mt76_dev *dev, const char *fw_name)
31243124
}
31253125

31263126
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",
31283128
be32_to_cpu(hdr->hw_sw_ver), hdr->build_date);
31293129

31303130
for (i = 0; i < be32_to_cpu(hdr->desc.n_region); i++) {

0 commit comments

Comments
 (0)