diff options
author | Stephan Berberig <s.berberig@arcor.de> | 2007-08-10 13:10:31 -0700 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-11 22:10:04 -0400 |
commit | 7aa763cb56b6efdfa5c1b83c336abf1be914afcd (patch) | |
tree | f29aa1377bcd04afbc555bcc089080b4faadc980 /drivers/acpi/bay.c | |
parent | 3864e8ccbba1dcdea87398ab80fdc8ae0fab7c45 (diff) | |
download | kernel_samsung_crespo-7aa763cb56b6efdfa5c1b83c336abf1be914afcd.zip kernel_samsung_crespo-7aa763cb56b6efdfa5c1b83c336abf1be914afcd.tar.gz kernel_samsung_crespo-7aa763cb56b6efdfa5c1b83c336abf1be914afcd.tar.bz2 |
ACPI: bay: send envp with uevent - fix
There must not be a new-line character in the uevent. Otherwise, udev gets
confused. Thanks to Kay Sievers for pointing it out.
Signed-off-by: Stephan Berberig <s.berberig@arcor.de>
Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
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/bay.c')
-rw-r--r-- | drivers/acpi/bay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 56a5b3f..6daf6088 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c @@ -337,7 +337,7 @@ static void bay_notify(acpi_handle handle, u32 event, void *data) char *envp[] = { event_string, NULL }; bay_dprintk(handle, "Bay event"); - sprintf(event_string, "BAY_EVENT=%d\n", event); + sprintf(event_string, "BAY_EVENT=%d", event); kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); } |