From e18ad46ad06cbde22a4319a1a73f73be76051171 Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Tue, 21 Feb 2017 00:03:54 +0100 Subject: Don't use identical log messages for non-identical error cases. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia80f112bef5f0c10e54223d3b57570fa53f7e867 Reviewed-on: https://code.wireshark.org/review/20216 Reviewed-by: Jörg Mayer --- capchild/capture_sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capchild') 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; -- cgit v1.2.3