[CRIU] [PATCH] test/zdtm: print a file name as string

Andrey Vagin avagin at openvz.org
Tue Oct 20 07:02:16 PDT 2015


From: Andrew Vagin <avagin at openvz.org>

Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 test/zdtm/live/static/ipc_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/live/static/ipc_namespace.c b/test/zdtm/live/static/ipc_namespace.c
index e02cb43..e069d99 100644
--- a/test/zdtm/live/static/ipc_namespace.c
+++ b/test/zdtm/live/static/ipc_namespace.c
@@ -225,7 +225,7 @@ static int rand_ipc_sem(void)
 
 	fd = open(name, O_WRONLY);
 	if (fd < 0) {
-		err("Can't open %d\n", name);
+		err("Can't open %s", name);
 		return fd;
 	}
 	sprintf(buf, "%d %d %d %d\n", (unsigned)lrand48(), (unsigned)lrand48(),
-- 
2.4.3



More information about the CRIU mailing list