From: Dmitry Eremin Date: Thu, 14 May 2015 18:40:27 +0000 (+0300) Subject: LU-6540 test: fix no %s specifier for the file X-Git-Tag: 2.7.57~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F14815%2F3;p=fs%2Flustre-release.git LU-6540 test: fix no %s specifier for the file The %m prints strerror(errno), but there is no %s specifier for the file. Signed-off-by: Dmitry Eremin Change-Id: Id9a8f486521b94e98986140fa374c40e08a00dac Reviewed-on: http://review.whamcloud.com/14815 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/flock.c b/lustre/tests/flock.c index 65c40e4..22e5dc5 100644 --- a/lustre/tests/flock.c +++ b/lustre/tests/flock.c @@ -175,7 +175,7 @@ void t21() fd = open(file, O_RDWR|O_CREAT, (mode_t)0666); if (fd < 0) { - printf("error open file: %m\n", file); + printf("open(%s) error: %s\n", file, strerror(errno)); exit(-1); }