Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
bdf278a1
Commit
bdf278a1
authored
Jul 22, 2016
by
Stéphane Graber
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1093 from brauner/2016-07-22/use_priu64
c/r: use PRIu64 format specifier
parents
3be6e5ff
9b945f13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
criu.c
src/lxc/criu.c
+3
-2
No files found.
src/lxc/criu.c
View file @
bdf278a1
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
*/
*/
#define _GNU_SOURCE
#define _GNU_SOURCE
#include <assert.h>
#include <assert.h>
#include <inttypes.h>
#include <linux/limits.h>
#include <linux/limits.h>
#include <sched.h>
#include <sched.h>
#include <stdio.h>
#include <stdio.h>
...
@@ -307,9 +308,9 @@ static void exec_criu(struct criu_opts *opts)
...
@@ -307,9 +308,9 @@ static void exec_criu(struct criu_opts *opts)
if
(
opts
->
user
->
ghost_limit
)
{
if
(
opts
->
user
->
ghost_limit
)
{
char
ghost_limit
[
32
];
char
ghost_limit
[
32
];
ret
=
sprintf
(
ghost_limit
,
"%
lu"
,
opts
->
user
->
ghost_limit
);
ret
=
sprintf
(
ghost_limit
,
"%
"
PRIu64
,
opts
->
user
->
ghost_limit
);
if
(
ret
<
0
||
ret
>=
sizeof
(
ghost_limit
))
{
if
(
ret
<
0
||
ret
>=
sizeof
(
ghost_limit
))
{
ERROR
(
"failed to print ghost limit %
lu"
,
opts
->
user
->
ghost_limit
);
ERROR
(
"failed to print ghost limit %
"
PRIu64
,
opts
->
user
->
ghost_limit
);
goto
err
;
goto
err
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment