[CRIU] [PATCH] autofs: fix device id printf modifier on error path in autofs_mnt_open
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Wed Mar 23 07:30:37 PDT 2016
Type dev_t corresponds to "unsigned long".
Signed-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
criu/autofs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/autofs.c b/criu/autofs.c
index 38b9186..9c39bdf 100644
--- a/criu/autofs.c
+++ b/criu/autofs.c
@@ -504,7 +504,7 @@ static int autofs_mnt_open(const char *mnt_path, dev_t devid)
fd = param->ioctlfd;
free(param);
if (err < 0) {
- pr_err("Failed to get %s fd (devid: %ld)\n", mnt_path, devid);
+ pr_err("Failed to get %s fd (devid: %lu)\n", mnt_path, devid);
return -1;
}
return fd;
More information about the CRIU
mailing list