[CRIU] [PATCH v2] pipe: print pipe_id as unsigned to generate an external pipe name
Andrei Vagin
avagin at gmail.com
Tue Sep 24 23:36:29 MSK 2019
Reported-by: Mr Jenkins
Signed-off-by: Andrei Vagin <avagin at gmail.com>
---
criu/pipes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
v2: fix an error message.
diff --git a/criu/pipes.c b/criu/pipes.c
index fd1a7e6bb..cb5da71de 100644
--- a/criu/pipes.c
+++ b/criu/pipes.c
@@ -282,8 +282,8 @@ static char *pipe_d_name(struct file_desc *d, char *buf, size_t s)
struct pipe_info *pi;
pi = container_of(d, struct pipe_info, d);
- if (snprintf(buf, s, "pipe:[%d]", pi->pe->pipe_id) >= s) {
- pr_err("Not enough room for pipe %d identifier string\n",
+ if (snprintf(buf, s, "pipe:[%u]", pi->pe->pipe_id) >= s) {
+ pr_err("Not enough room for pipe %u identifier string\n",
pi->pe->pipe_id);
return NULL;
}
--
2.14.5
More information about the CRIU
mailing list