Commit c33a62df authored by Stanislav Kinsbursky's avatar Stanislav Kinsbursky Committed by Pavel Emelyanov

ipc: fix silly misprint in IPC shm show handler

IPC shared memory data is aligned by 32 bits.
Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1d186022
...@@ -503,7 +503,7 @@ static void ipc_shm_handler(int fd, void *obj, int show_pages_content) ...@@ -503,7 +503,7 @@ static void ipc_shm_handler(int fd, void *obj, int show_pages_content)
if (show_pages_content) { if (show_pages_content) {
pr_msg("\n"); pr_msg("\n");
print_image_data(fd, round_up(e->size, sizeof(u64))); print_image_data(fd, round_up(e->size, sizeof(u32)));
} else } else
lseek(fd, round_up(e->size, sizeof(u32)), SEEK_CUR); lseek(fd, round_up(e->size, sizeof(u32)), SEEK_CUR);
} }
......
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