Variables type of size_t have to be printed with "%z" directive.

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

Signed-off-by: Stanislav Kinsburskiy <skinsbur...@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)) {

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to