summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2013-07-09 12:49:56 +0300
committerUri Lublin <uril@redhat.com>2013-07-16 23:37:27 +0300
commitcbcd9eea363d287708e244e5afa3d25e9aa00810 (patch)
treef4996faa33d4d51625cd5e1f9e45c7ee0558bf5e /server
parent694f4b9e5797af60e1586c2a99c19671483e5b44 (diff)
downloadspice-cbcd9eea363d287708e244e5afa3d25e9aa00810.tar.gz
spice-cbcd9eea363d287708e244e5afa3d25e9aa00810.tar.xz
spice-cbcd9eea363d287708e244e5afa3d25e9aa00810.zip
server/tests: invalid-option: print the bad argument
optind points to the next argument to parse.
Diffstat (limited to 'server')
-rw-r--r--server/tests/test_display_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index cf3990f0..a4fdae9e 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -892,7 +892,7 @@ void spice_test_config_parse_args(int argc, char **argv)
while ((val = getopt_long(argc, argv, "", options, &option_index)) != -1) {
switch (val) {
case '?':
- printf("unrecognized option %s", argv[optind]);
+ printf("unrecognized option '%s'\n", argv[optind - 1]);
goto invalid_option;
case 0:
break;