Don't just quietly fail PreInit.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/wcmValidateDevice.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 549dfd4..dae5a3b 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -171,6 +171,11 @@ Bool wcmIsAValidType(InputInfoPtr pInfo, const char* type)
                        }
                }
        }
+
+       if (!ret)
+               xf86Msg(X_ERROR, "%s: Invalid type '%s' for this device.\n",
+                       pInfo->name, type);
+
        return ret;
 }
 
-- 
1.7.6


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to