From 104d58a6d2592898fbb6989732600b07d543a8e5 Mon Sep 17 00:00:00 2001 From: Maoxia <2312891301@qq.com> Date: Sun, 13 Sep 2026 02:03:21 +0800 Subject: [PATCH] virtio_pci: add missing newline to the pmcsr error message The error message emitted when the PCI power management control register cannot be read is not newline-terminated, so the next kernel message is appended to it on the same line. Add the missing '\n'. Fixes: dff4fa0e5785 ("virtio: Add support for no-reset virtio PCI PM") Signed-off-by: Maoxia <2312891301@qq.com> Signed-off-by: Michael S. Tsirkin Message-ID: --- drivers/virtio/virtio_pci_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index b90c174450b2..24af84b0c6ad 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -633,7 +633,7 @@ static bool vp_supports_pm_no_reset(struct device *dev) pci_read_config_word(pci_dev, pci_dev->pm_cap + PCI_PM_CTRL, &pmcsr); if (PCI_POSSIBLE_ERROR(pmcsr)) { - dev_err(dev, "Unable to query pmcsr"); + dev_err(dev, "Unable to query pmcsr\n"); return false; }