]> www.infradead.org Git - users/jedix/linux-maple.git/commit
samples/landlock: Refactor help message
authorMatthieu Buffet <matthieu@buffet.re>
Sat, 19 Oct 2024 15:15:33 +0000 (17:15 +0200)
committerMickaël Salaün <mic@digikod.net>
Tue, 22 Oct 2024 18:43:43 +0000 (20:43 +0200)
commitf51e55a0892bd2030c847d4583c12498bb93f812
treebab0205f4242016029315f37b8253611b7ec6116
parent387285530d1d4bdba8c5dff5aeabd8d71638173f
samples/landlock: Refactor help message

Help message is getting larger with each new supported feature (scopes,
and soon UDP). Also the large number of calls to fprintf with
environment variables make it hard to read. Refactor it away into a
single simpler constant format string.

Signed-off-by: Matthieu Buffet <matthieu@buffet.re>
Link: https://lore.kernel.org/r/20241019151534.1400605-3-matthieu@buffet.re
[mic: Move the small cleanups in the next commit]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
samples/landlock/sandboxer.c