Skip to content

Commit

Permalink
[PATCH] PCI: Remove newline from pci MODALIAS variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Reinecke authored and Greg Kroah-Hartman committed Jul 1, 2005
1 parent 5823d10 commit c6e21e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c6e21e1

Please sign in to comment.