Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66b568218ab73be161dc109b913e6fa7dda44e16
Commit:     66b568218ab73be161dc109b913e6fa7dda44e16
Parent:     7aa763cb56b6efdfa5c1b83c336abf1be914afcd
Author:     Holger Macht <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 13:10:32 2007 -0700
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Sat Aug 11 22:12:10 2007 -0400

    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 <[EMAIL PROTECTED]>
    Acked-by: Kristen Carlson Accardi <[EMAIL PROTECTED]>
    Cc: Stephan Berberig <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Acked-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 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 6192c8b..1dabdf4 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)
 static void dock_event(struct dock_station *ds, u32 event, int num)
 {
        struct device *dev = &dock_device->dev;
-       char event_string[7];
+       char event_string[13];
        char *envp[] = { event_string, NULL };
 
        if (num == UNDOCK_EVENT)
-               sprintf(event_string, "UNDOCK");
+               sprintf(event_string, "EVENT=undock");
        else
-               sprintf(event_string, "DOCK");
+               sprintf(event_string, "EVENT=dock");
 
        /*
         * Indicate that the status of the dock station has
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to