On Tue, 12 Jun 2007 00:12:00 +0200 Holger Macht <hmacht@xxxxxxx> wrote: > 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@xxxxxxx> Acked-by: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx> > --- > > Patch applies to recent acpi-test tree > > diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c > diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c > index dc3df93..877ca1c 100644 > --- a/drivers/acpi/dock.c > +++ b/drivers/acpi/dock.c > @@ -336,13 +336,13 @@ static void hotplug_dock_devices(struct > 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 linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html