]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredumpctl: report user unit properly
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Sep 2016 23:18:48 +0000 (01:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Sep 2016 21:49:01 +0000 (23:49 +0200)
src/coredump/coredumpctl.c

index 45ce31e9bb071b101bc0865689fb12595ac4eee7..0640816989ff30431a90f3c1c6ff733074b6057f 100644 (file)
@@ -477,7 +477,7 @@ static int print_info(FILE *file, sd_journal *j, bool need_space) {
         if (unit)
                 fprintf(file, "          Unit: %s\n", unit);
         if (user_unit)
-                fprintf(file, "     User Unit: %s\n", unit);
+                fprintf(file, "     User Unit: %s\n", user_unit);
         if (slice)
                 fprintf(file, "         Slice: %s\n", slice);
         if (session)