[lxc/lxc] 304bf5: initutils: use PRIu64 for uint64_t in setproctitle

1 view
Skip to first unread message

Stéphane Graber

unread,
Feb 16, 2023, 11:15:18 AM2/16/23
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 304bf58fa142c7189178f2d78dd39e7dcd3ea814
https://github.com/lxc/lxc/commit/304bf58fa142c7189178f2d78dd39e7dcd3ea814
Author: Alexander Mikhalitsyn <aleksandr....@canonical.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)

Changed paths:
M src/lxc/initutils.c

Log Message:
-----------
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....@canonical.com>


Commit: 0b286bde88a2d35f0791aab82cb9b744883fe719
https://github.com/lxc/lxc/commit/0b286bde88a2d35f0791aab82cb9b744883fe719
Author: Stéphane Graber <stgr...@ubuntu.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)

Changed paths:
M src/lxc/initutils.c

Log Message:
-----------
Merge pull request #4279 from mihalicyn/setproctitle_fix_fmt_spec

initutils: use PRIu64 for uint64_t in setproctitle


Compare: https://github.com/lxc/lxc/compare/2d3dab782d89...0b286bde88a2
Reply all
Reply to author
Forward
0 new messages