From 7acdbb7cf95299fda29d6bea691af925f5182749 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 17 Aug 2010 11:34:32 +1000 Subject: 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 --- tools/synclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools') 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; -- cgit v1.2.3