Both FORMAT_XORG_CONF and FORMAT_SHELL are formatted for setting in xorg.conf or xsetwacom. It makes no sense to bother printing out the value of readonly values for these two cases though since it is impossible to set them.
Signed-off-by: Jason Gerecke <killert...@gmail.com> --- tools/xsetwacom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 75305e8..d78160e 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -668,6 +668,8 @@ static void print_value(param_t *param, const char *msg, ...) switch(param->printformat) { case FORMAT_XORG_CONF: + if (param->prop_flags & PROP_FLAG_READONLY) + break; if (!param->x11name) break; printf("Option \"%s\" \"", param->x11name); @@ -675,6 +677,8 @@ static void print_value(param_t *param, const char *msg, ...) printf("\"\n"); break; case FORMAT_SHELL: + if (param->prop_flags & PROP_FLAG_READONLY) + break; printf("xsetwacom set \"%s\" \"%s\" \"", param->device_name, param->name); vprintf(msg, va_args); -- 2.2.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel