[Spice-devel] [PATCH spice-streaming-agent 4/9] Improve the invalid option argument (-c) error message
Lukáš Hrázký
lhrazky at redhat.com
Wed Jun 13 12:06:23 UTC 2018
Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
---
src/spice-streaming-agent.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index ca10d3b..d5ed034 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -429,7 +429,7 @@ int main(int argc, char* argv[])
case 'c': {
char *p = strchr(optarg, '=');
if (p == NULL) {
- syslog(LOG_ERR, "wrong 'c' argument %s\n", optarg);
+ syslog(LOG_ERR, "Invalid '-c' argument value: %s\n", optarg);
usage(argv[0]);
}
*p++ = '\0';
--
2.17.1
More information about the Spice-devel
mailing list