]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: rename gather_pid_metadata() → gather_pid_metadata_from_procfs()
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Aug 2023 10:11:52 +0000 (12:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Aug 2023 10:11:55 +0000 (12:11 +0200)
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

index 4898a6f83df5f3db632ecd90c86edfa3b42cd9f6..08be963b8a2769056e9ef7fb7e154ad8d163e8c0 100644 (file)
@@ -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;