ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
923a60
From 60545c63716ecc720728c221c61d575b267fbfc8 Mon Sep 17 00:00:00 2001
923a60
From: Michal Schmidt <mschmidt@redhat.com>
923a60
Date: Tue, 21 Jul 2015 15:51:16 +0200
923a60
Subject: [PATCH] core: remove generic job completion messages from unit
923a60
 vtables
923a60
923a60
These units' message format strings are identical to the generic
923a60
strings. Since we can always rely on the fallback, these are now
923a60
redundant.
923a60
923a60
(cherry picked from commit c382d69e3d39daedebcedb2da882beeb147a3cda)
923a60
923a60
Related: #1506256
923a60
---
923a60
 src/core/automount.c | 1 -
923a60
 src/core/busname.c   | 3 ---
923a60
 src/core/mount.c     | 1 -
923a60
 src/core/service.c   | 3 ---
923a60
 src/core/slice.c     | 1 -
923a60
 src/core/socket.c    | 1 -
923a60
 src/core/swap.c      | 1 -
923a60
 src/core/target.c    | 1 -
923a60
 8 files changed, 12 deletions(-)
923a60
923a60
diff --git a/src/core/automount.c b/src/core/automount.c
923a60
index 679fe071e7..08519e49ca 100644
923a60
--- a/src/core/automount.c
923a60
+++ b/src/core/automount.c
923a60
@@ -1126,7 +1126,6 @@ const UnitVTable automount_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Set up automount %s.",
923a60
                         [JOB_FAILED]     = "Failed to set up automount %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
                         [JOB_DONE]       = "Unset automount %s.",
923a60
diff --git a/src/core/busname.c b/src/core/busname.c
923a60
index f626ba96d0..a5e659049d 100644
923a60
--- a/src/core/busname.c
923a60
+++ b/src/core/busname.c
923a60
@@ -1064,13 +1064,10 @@ const UnitVTable busname_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Listening on %s.",
923a60
                         [JOB_FAILED]     = "Failed to listen on %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
-                        [JOB_TIMEOUT]    = "Timed out starting %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
                         [JOB_DONE]       = "Closed %s.",
923a60
                         [JOB_FAILED]     = "Failed stopping %s.",
923a60
-                        [JOB_TIMEOUT]    = "Timed out stopping %s.",
923a60
                 },
923a60
         },
923a60
 };
923a60
diff --git a/src/core/mount.c b/src/core/mount.c
923a60
index f726d96591..0dc67dde69 100644
923a60
--- a/src/core/mount.c
923a60
+++ b/src/core/mount.c
923a60
@@ -1978,7 +1978,6 @@ const UnitVTable mount_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Mounted %s.",
923a60
                         [JOB_FAILED]     = "Failed to mount %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                         [JOB_TIMEOUT]    = "Timed out mounting %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
diff --git a/src/core/service.c b/src/core/service.c
923a60
index 9622ce11ff..8303a1e7ee 100644
923a60
--- a/src/core/service.c
923a60
+++ b/src/core/service.c
923a60
@@ -3398,13 +3398,10 @@ const UnitVTable service_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Started %s.",
923a60
                         [JOB_FAILED]     = "Failed to start %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
-                        [JOB_TIMEOUT]    = "Timed out starting %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
                         [JOB_DONE]       = "Stopped %s.",
923a60
                         [JOB_FAILED]     = "Stopped (with error) %s.",
923a60
-                        [JOB_TIMEOUT]    = "Timed out stopping %s.",
923a60
                 },
923a60
         },
923a60
 };
923a60
diff --git a/src/core/slice.c b/src/core/slice.c
923a60
index 9154558b7b..1cce3e1217 100644
923a60
--- a/src/core/slice.c
923a60
+++ b/src/core/slice.c
923a60
@@ -299,7 +299,6 @@ const UnitVTable slice_vtable = {
923a60
         .status_message_formats = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Created slice %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
                         [JOB_DONE]       = "Removed slice %s.",
923a60
diff --git a/src/core/socket.c b/src/core/socket.c
923a60
index 771af0d241..efefe7ce5d 100644
923a60
--- a/src/core/socket.c
923a60
+++ b/src/core/socket.c
923a60
@@ -2736,7 +2736,6 @@ const UnitVTable socket_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Listening on %s.",
923a60
                         [JOB_FAILED]     = "Failed to listen on %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                         [JOB_TIMEOUT]    = "Timed out starting %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
diff --git a/src/core/swap.c b/src/core/swap.c
923a60
index 984be2d9a9..e71de4e657 100644
923a60
--- a/src/core/swap.c
923a60
+++ b/src/core/swap.c
923a60
@@ -1525,7 +1525,6 @@ const UnitVTable swap_vtable = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Activated swap %s.",
923a60
                         [JOB_FAILED]     = "Failed to activate swap %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                         [JOB_TIMEOUT]    = "Timed out activating swap %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
diff --git a/src/core/target.c b/src/core/target.c
923a60
index 2411a8e758..45248ad025 100644
923a60
--- a/src/core/target.c
923a60
+++ b/src/core/target.c
923a60
@@ -231,7 +231,6 @@ const UnitVTable target_vtable = {
923a60
         .status_message_formats = {
923a60
                 .finished_start_job = {
923a60
                         [JOB_DONE]       = "Reached target %s.",
923a60
-                        [JOB_DEPENDENCY] = "Dependency failed for %s.",
923a60
                 },
923a60
                 .finished_stop_job = {
923a60
                         [JOB_DONE]       = "Stopped target %s.",