For unknown devices, set the event's device name to the name of the
authorChristopher Michael <cpmichael1@comcast.net>
Mon, 17 May 2010 00:11:55 +0000 (00:11 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Mon, 17 May 2010 00:11:55 +0000 (00:11 +0000)
device returned in the ACPI message rather than a hard-coded 'unknown'.

SVN revision: 48930

src/bin/e_acpi.c

index 7063f8d..d68a359 100644 (file)
@@ -177,7 +177,7 @@ _e_acpi_cb_server_data(void *data __UNUSED__, int type __UNUSED__, void *event)
      }
    else 
      {
-       acpi_event->device = eina_stringshare_add("unknown");
+       acpi_event->device = eina_stringshare_add(device);
        acpi_event->type = E_ACPI_TYPE_UNKNOWN;
      }