mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
criu: musl scanf and printf don't support the L modifer for intergers
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
8afa426d18
commit
e57fd31f8b
@ -203,7 +203,7 @@ static int open_handle(unsigned int s_dev, unsigned long i_ino,
|
||||
|
||||
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]);
|
||||
|
||||
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)
|
||||
|
||||
if (type != FD_TYPES__SIGNALFD)
|
||||
goto parse_err;
|
||||
ret = sscanf(str, "sigmask: %Lx",
|
||||
ret = sscanf(str, "sigmask: %llx",
|
||||
(unsigned long long *)&sfd->sigmask);
|
||||
if (ret != 1)
|
||||
goto parse_err;
|
||||
|
@ -52,7 +52,7 @@ static void sigset_fill(sigset_t *to, unsigned long long from)
|
||||
{
|
||||
int sig;
|
||||
|
||||
pr_info("\tCalculating sigmask for %Lx\n", from);
|
||||
pr_info("\tCalculating sigmask for %llx\n", from);
|
||||
sigemptyset(to);
|
||||
for (sig = 1; sig < NSIG; sig++)
|
||||
if (from & (1ULL << (sig - 1))) {
|
||||
|
@ -1031,7 +1031,7 @@ static int handle_remove(struct lazy_pages_info *lpi, struct uffd_msg *msg)
|
||||
unreg.start = 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",
|
||||
unreg.start, unreg.len);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user