summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-08-17 11:34:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-08-17 11:34:32 +1000
commit7acdbb7cf95299fda29d6bea691af925f5182749 (patch)
tree4c36274225d4d9e625407d971d57ca7b8bf0b950
parentabb448a253cb0b3003038fbaa1daa9494c396e8f (diff)
synclient: don't print "missing" if a property doesn't exist.
Virtually all touchpads still in use have one or more properties missing anyway. If it's not in the list, then it's missing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--tools/synclient.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index bd57faa..d5bfdf0 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -496,11 +496,8 @@ dp_show_settings(Display *dpy, XDevice *dev)
for (j = 0; params[j].name; j++) {
struct Parameter *par = &params[j];
a = XInternAtom(dpy, par->prop_name, True);
- if (!a) {
- fprintf(stderr, " %-23s = missing\n",
- par->name);
+ if (!a)
continue;
- }
len = 1 + ((par->prop_offset * (par->prop_format ? par->prop_format : 32)/8))/4;