Commit e57fd31f authored by Andrei Vagin's avatar Andrei Vagin Committed by Pavel Emelyanov

criu: musl scanf and printf don't support the L modifer for intergers

Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 8afa426d
...@@ -203,7 +203,7 @@ static int open_handle(unsigned int s_dev, unsigned long i_ino, ...@@ -203,7 +203,7 @@ static int open_handle(unsigned int s_dev, unsigned long i_ino,
decode_handle(&handle, f_handle); decode_handle(&handle, f_handle);
pr_debug("Opening fhandle %x:%Lx...\n", pr_debug("Opening fhandle %x:%llx...\n",
s_dev, (unsigned long long)handle.__handle[0]); s_dev, (unsigned long long)handle.__handle[0]);
for (m = mntinfo; m; m = m->next) { for (m = mntinfo; m; m = m->next) {
......
...@@ -1782,7 +1782,7 @@ static int parse_fdinfo_pid_s(int pid, int fd, int type, void *arg) ...@@ -1782,7 +1782,7 @@ static int parse_fdinfo_pid_s(int pid, int fd, int type, void *arg)
if (type != FD_TYPES__SIGNALFD) if (type != FD_TYPES__SIGNALFD)
goto parse_err; goto parse_err;
ret = sscanf(str, "sigmask: %Lx", ret = sscanf(str, "sigmask: %llx",
(unsigned long long *)&sfd->sigmask); (unsigned long long *)&sfd->sigmask);
if (ret != 1) if (ret != 1)
goto parse_err; goto parse_err;
......
...@@ -52,7 +52,7 @@ static void sigset_fill(sigset_t *to, unsigned long long from) ...@@ -52,7 +52,7 @@ static void sigset_fill(sigset_t *to, unsigned long long from)
{ {
int sig; int sig;
pr_info("\tCalculating sigmask for %Lx\n", from); pr_info("\tCalculating sigmask for %llx\n", from);
sigemptyset(to); sigemptyset(to);
for (sig = 1; sig < NSIG; sig++) for (sig = 1; sig < NSIG; sig++)
if (from & (1ULL << (sig - 1))) { if (from & (1ULL << (sig - 1))) {
......
...@@ -1031,7 +1031,7 @@ static int handle_remove(struct lazy_pages_info *lpi, struct uffd_msg *msg) ...@@ -1031,7 +1031,7 @@ static int handle_remove(struct lazy_pages_info *lpi, struct uffd_msg *msg)
unreg.start = msg->arg.remove.start; unreg.start = msg->arg.remove.start;
unreg.len = msg->arg.remove.end - msg->arg.remove.start; unreg.len = msg->arg.remove.end - msg->arg.remove.start;
lp_debug(lpi, "%s: %Lx(%Lx)\n", lp_debug(lpi, "%s: %llx(%llx)\n",
msg->event == UFFD_EVENT_REMOVE ? "REMOVE" : "UNMAP", msg->event == UFFD_EVENT_REMOVE ? "REMOVE" : "UNMAP",
unreg.start, unreg.len); unreg.start, unreg.len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment