diff options
author | Holger Macht <hmacht@suse.de> | 2007-08-10 16:10:32 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-11 22:12:10 -0400 |
commit | 66b568218ab73be161dc109b913e6fa7dda44e16 (patch) | |
tree | ac3d436c7f0ba420837f99cb8199bdd2d9fde34e /drivers/acpi | |
parent | 7aa763cb56b6efdfa5c1b83c336abf1be914afcd (diff) |
ACPI: dock: Send key=value pair instead of plain value
Send key=value pair along with the uevent instead of a plain value so that
userspace (udev) can handle it like common environment variables.
Signed-off-by: Holger Macht <hmacht@suse.de>
Acked-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Cc: Stephan Berberig <s.berberig@arcor.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/dock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 6192c8be66df..1dabdf4c07b3 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -336,13 +336,13 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event) | |||
336 | static void dock_event(struct dock_station *ds, u32 event, int num) | 336 | static void dock_event(struct dock_station *ds, u32 event, int num) |
337 | { | 337 | { |
338 | struct device *dev = &dock_device->dev; | 338 | struct device *dev = &dock_device->dev; |
339 | char event_string[7]; | 339 | char event_string[13]; |
340 | char *envp[] = { event_string, NULL }; | 340 | char *envp[] = { event_string, NULL }; |
341 | 341 | ||
342 | if (num == UNDOCK_EVENT) | 342 | if (num == UNDOCK_EVENT) |
343 | sprintf(event_string, "UNDOCK"); | 343 | sprintf(event_string, "EVENT=undock"); |
344 | else | 344 | else |
345 | sprintf(event_string, "DOCK"); | 345 | sprintf(event_string, "EVENT=dock"); |
346 | 346 | ||
347 | /* | 347 | /* |
348 | * Indicate that the status of the dock station has | 348 | * Indicate that the status of the dock station has |