[Devel] [PATCH] zdtm: fix autofs tes compilation
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Wed Aug 30 14:59:02 MSK 2017
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 at virtuozzo.com>
---
test/zdtm/static/autofs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)) {
More information about the Devel
mailing list