[CRIU] [PATCH] ipc: fix silly misprint in IPC shm show handler
Kinsbursky Stanislav
skinsbursky at openvz.org
Mon Dec 10 07:59:14 EST 2012
From: Stanislav Kinsbursky <skinsbursky at openvz.org>
IPC shared memory data is aligned by 32 bits.
Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
ipc_ns.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/ipc_ns.c b/ipc_ns.c
index 724e493..0d3493e 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -503,7 +503,7 @@ static void ipc_shm_handler(int fd, void *obj, int show_pages_content)
if (show_pages_content) {
pr_msg("\n");
- print_image_data(fd, round_up(e->size, sizeof(u64)));
+ print_image_data(fd, round_up(e->size, sizeof(u32)));
} else
lseek(fd, round_up(e->size, sizeof(u32)), SEEK_CUR);
}
More information about the CRIU
mailing list