aboutsummaryrefslogtreecommitdiffstats
path: root/capchild
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2017-02-21 00:03:54 +0100
committerJörg Mayer <jmayer@loplof.de>2017-02-20 23:12:16 +0000
commite18ad46ad06cbde22a4319a1a73f73be76051171 (patch)
treeaa4219677306b64f33a8b7885cab2f8a127b5980 /capchild
parentb82f7c5b7d30241dd190cd243111b224c2813c90 (diff)
Don't use identical log messages for non-identical error cases.
Change-Id: Ia80f112bef5f0c10e54223d3b57570fa53f7e867 Reviewed-on: https://code.wireshark.org/review/20216 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'capchild')
-rw-r--r--capchild/capture_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c
index 2c71d7ed55..a0ba3f5bd3 100644
--- a/capchild/capture_sync.c
+++ b/capchild/capture_sync.c
@@ -1652,7 +1652,7 @@ pipe_read_block(int pipe_fd, char *indicator, int len, char *msg,
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG,
"read from pipe %d: error(%u): %s", pipe_fd, errno, g_strerror(errno));
}
- *err_msg = g_strdup_printf("Unknown message from dumpcap, try to show it as a string: %s",
+ *err_msg = g_strdup_printf("Unknown message from dumpcap reading header, try to show it as a string: %s",
msg);
return -1;
}
@@ -1662,7 +1662,7 @@ pipe_read_block(int pipe_fd, char *indicator, int len, char *msg,
newly = pipe_read_bytes(pipe_fd, msg, required, err_msg);
if(newly != required) {
if (newly != -1) {
- *err_msg = g_strdup_printf("Unknown message from dumpcap, try to show it as a string: %s",
+ *err_msg = g_strdup_printf("Unknown message from dumpcap reading data, try to show it as a string: %s",
msg);
}
return -1;