Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6e21e16 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Greg Kroah-Hartman
Browse files

[PATCH] PCI: Remove newline from pci MODALIAS variable



the pci core sends out a hotplug event variable MODALIAS with a trailing
newline. This is inconsistent with all other event variables and breaks
some hotplug tools. This patch removes the said newline.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5823d100
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ int pci_hotplug (struct device *dev, char **envp, int num_envp,

	envp[i++] = scratch;
	length += scnprintf (scratch, buffer_size - length,
			    "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x\n",
			    "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x",
			    pdev->vendor, pdev->device,
			    pdev->subsystem_vendor, pdev->subsystem_device,
			    (u8)(pdev->class >> 16), (u8)(pdev->class >> 8),