[CRIU] [PATCH] zdtm: use pr_err if errno isn't required

Andrei Vagin avagin at openvz.org
Thu Feb 2 19:13:22 PST 2017


From: Andrei Vagin <avagin at virtuozzo.com>

205             if (fd < 0) {
>>>     CID 175317:    (PW.BAD_PRINTF_FORMAT_STRING)
>>>     invalid format string conversion
206                     pr_perror("can't accept client connection %m");

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm/static/socket-tcp-close-wait.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/zdtm/static/socket-tcp-close-wait.c b/test/zdtm/static/socket-tcp-close-wait.c
index be000a4..ff79c0c 100644
--- a/test/zdtm/static/socket-tcp-close-wait.c
+++ b/test/zdtm/static/socket-tcp-close-wait.c
@@ -203,13 +203,13 @@ int main(int argc, char **argv)
 	 */
 	fd = tcp_accept_server(fd_s);
 	if (fd < 0) {
-		pr_perror("can't accept client connection %m");
+		pr_err("can't accept client connection");
 		return 1;
 	}
 
 	ctl_fd = tcp_accept_server(fd_s);
 	if (ctl_fd < 0) {
-		pr_perror("can't accept client connection %m");
+		pr_err("can't accept client connection");
 		return 1;
 	}
 
-- 
2.7.4



More information about the CRIU mailing list