diff options
author | Sergey Udaltsov <svu@gnome.org> | 2011-01-30 01:16:56 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2011-01-30 01:16:56 +0000 |
commit | 62311e3458b4a1f47bc9db3be8678640b8a71723 (patch) | |
tree | 77e190a2c3c2e8add3eb7a66990845b670ba5d3e /tests | |
parent | 07be77f5da618f0eebea6030c6e74a79377bd72a (diff) | |
download | libxklavier-62311e3458b4a1f47bc9db3be8678640b8a71723.tar.gz |
Improved printing for search results
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_config.c b/tests/test_config.c index e4f62a8..3e2a384 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -175,9 +175,12 @@ print_found_variants(XklConfigRegistry * config, const XklConfigItem * parent_item, const XklConfigItem * child_item) { - printf("found layout: [%s]\n", parent_item->name); - if (child_item != NULL) - printf("found variant: [%s]\n", child_item->name); + if (child_item == NULL) + printf("found layout: [%s]\n", parent_item->name); + else + printf("found variant: [%s][%s]\n", parent_item->name, + child_item->name); + } int |