From db9ac8016322e3227b0466f35ca0103e0cc8d829 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Aug 2023 12:11:52 +0200 Subject: [PATCH] =?utf8?q?coredump:=20rename=20gather=5Fpid=5Fmetadata()?= =?utf8?q?=20=E2=86=92=20gather=5Fpid=5Fmetadata=5Ffrom=5Fprocfs()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Let's make clear what this function does, and what it distinguishes with the more precisely named gather_pid_metadata_from_argv(). --- src/coredump/coredump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 4898a6f83d..08be963b8a 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1253,7 +1253,7 @@ static int gather_pid_metadata_from_argv( return save_context(context, iovw); } -static int gather_pid_metadata(struct iovec_wrapper *iovw, Context *context) { +static int gather_pid_metadata_from_procfs(struct iovec_wrapper *iovw, Context *context) { uid_t owner_uid; pid_t pid; char *t; @@ -1395,7 +1395,7 @@ static int process_kernel(int argc, char* argv[]) { return r; /* Collect the rest of the process metadata retrieved from the runtime */ - r = gather_pid_metadata(iovw, &context); + r = gather_pid_metadata_from_procfs(iovw, &context); if (r < 0) return r; @@ -1443,7 +1443,7 @@ static int process_backtrace(int argc, char *argv[]) { goto finish; /* Collect the rest of the process metadata retrieved from the runtime */ - r = gather_pid_metadata(iovw, &context); + r = gather_pid_metadata_from_procfs(iovw, &context); if (r < 0) goto finish; -- 2.25.1