]> git.ipfire.org Git - thirdparty/lxc.git/commit
initutils: use PRIu64 for uint64_t in setproctitle
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Thu, 16 Feb 2023 12:29:56 +0000 (13:29 +0100)
committerStéphane Graber <stgraber@stgraber.org>
Tue, 25 Jul 2023 16:27:23 +0000 (12:27 -0400)
commit706ee25cda125c370fe1bc8a2672844cce81d11b
tree803947d16a0c6512a08a84c365c0ac062e723c69
parent3cdd5078c3558b6c853eba5ed5912fb0e5a28668
initutils: use PRIu64 for uint64_t in setproctitle

Kernel UAPI provides as with the following declaration:
/*
 * This structure provides new memory descriptor
 * map which mostly modifies /proc/pid/stat[m]
 * output for a task. This mostly done in a
 * sake of checkpoint/restore functionality.
 */
struct prctl_mm_map {
__u64 start_code; /* code section bounds */
__u64 end_code;
__u64 start_data; /* data section bounds */
__u64 end_data;
__u64 start_brk; /* heap for brk() syscall */
__u64 brk;
__u64 start_stack; /* stack starts at */
__u64 arg_start; /* command line arguments bounds */
__u64 arg_end;
__u64 env_start; /* environment variables bounds */
__u64 env_end;
__u64 *auxv; /* auxiliary vector */
__u32 auxv_size; /* vector size */
__u32 exe_fd; /* /proc/$pid/exe link file */
};

Let's use appropriate types/format specifiers everywhere.

Issue #4268

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/initutils.c