]> err.no Git - linux-2.6/commitdiff
[PATCH] PCI: Remove newline from pci MODALIAS variable
authorHannes Reinecke <hare@suse.de>
Tue, 28 Jun 2005 12:57:10 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2005 20:35:51 +0000 (13:35 -0700)
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug.c

index 3903f8c559b603989068767f30bae7fceb2144f6..b844bc97232444ee9dcb6ed5f1b4e06aa75280a2 100644 (file)
@@ -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),