[CRIU] [PATCH v2] autofs: fix device id modifier on error path in autofs_mnt_open
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Wed Mar 23 09:41:36 PDT 2016
Type dev_t corresponds to "unsigned long".
v2: explicitly cast to "long"
Signed-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
criu/autofs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/autofs.c b/criu/autofs.c
index 38b9186..259097b 100644
--- a/criu/autofs.c
+++ b/criu/autofs.c
@@ -504,7 +504,8 @@ 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: %ld)\n",
+ mnt_path,(long)devid);
return -1;
}
return fd;
More information about the CRIU
mailing list