[Devel] zdtm: fix autofs tes compilation

Submitted by Stanislav Kinsburskiy on Aug. 30, 2017, 11:59 a.m.

Details

Message ID 20170830115859.228508.59138.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "zdtm: fix autofs tes compilation"
Headers show

Commit Message

Stanislav Kinsburskiy Aug. 30, 2017, 11:59 a.m.
Variables type of size_t have to be printed with "%z" directive.

https://jira.sw.ru/browse/PSBM-71041

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 test/zdtm/static/autofs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/test/zdtm/static/autofs.c b/test/zdtm/static/autofs.c
index d854fd0..8d917ee 100644
--- a/test/zdtm/static/autofs.c
+++ b/test/zdtm/static/autofs.c
@@ -484,7 +484,7 @@  static int automountd_loop(int pipe, const char *mountpoint, struct autofs_param
 			continue;
 		}
 		if (bytes > psize) {
-			pr_err("read more that expected: %ld > %ld\n", bytes, psize);
+			pr_err("read more that expected: %zd > %zd\n", bytes, psize);
 			return -EINVAL;
 		}
 		if (bytes != sizeof(*packet)) {