summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-23 10:01:30 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-26 09:33:39 +0930
commite58be0f3425fb3e946a222077672c3c01308f887 (patch)
tree6467491b0360f7cab7264720c8e18bb284f70f06 /config
parent30c3c13f1030268aaa6a3598d538fafd0592d77a (diff)
config: print error code if NIDR fails.
Diffstat (limited to 'config')
-rw-r--r--config/hal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/hal.c b/config/hal.c
index 3e0ff0895..6573efed3 100644
--- a/config/hal.c
+++ b/config/hal.c
@@ -174,6 +174,7 @@ device_added(LibHalContext *hal_ctx, const char *udi)
DeviceIntPtr dev = NULL;
DBusError error;
struct xkb_options xkb_opts = {0};
+ int rc;
LibHalPropertySet *set = NULL;
LibHalPropertySetIterator set_iter;
@@ -372,8 +373,8 @@ device_added(LibHalContext *hal_ctx, const char *udi)
/* this isn't an error, but how else do you output something that the user can see? */
LogMessage(X_INFO, "config/hal: Adding input device %s\n", name);
- if (NewInputDeviceRequest(options, &dev) != Success) {
- LogMessage(X_ERROR, "config/hal: NewInputDeviceRequest failed\n");
+ if ((rc = NewInputDeviceRequest(options, &dev)) != Success) {
+ LogMessage(X_ERROR, "config/hal: NewInputDeviceRequest failed (%d)\n", rc);
dev = NULL;
goto unwind;
}