diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-08-17 11:34:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-08-17 11:34:32 +1000 |
commit | 7acdbb7cf95299fda29d6bea691af925f5182749 (patch) | |
tree | 4c36274225d4d9e625407d971d57ca7b8bf0b950 /tools/synclient.c | |
parent | abb448a253cb0b3003038fbaa1daa9494c396e8f (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>
Diffstat (limited to 'tools/synclient.c')
-rw-r--r-- | tools/synclient.c | 5 |
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 = ¶ms[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; |