diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-02 16:59:23 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-19 11:33:52 +0200 |
commit | 48d83e33682654fd01ffc43e5c6ae999e53c8e79 (patch) | |
tree | 8de726a45c03cad98ed3bd0af62ee21351c412b6 /src/core/swap.c | |
parent | core: modernize asprintf error handling (diff) | |
download | systemd-48d83e33682654fd01ffc43e5c6ae999e53c8e79.tar.xz systemd-48d83e33682654fd01ffc43e5c6ae999e53c8e79.zip |
core: align string tables
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index 81fb3bb2de..d7089f1c55 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1589,19 +1589,19 @@ static int swap_can_clean(Unit *u, ExecCleanMask *ret) { } static const char* const swap_exec_command_table[_SWAP_EXEC_COMMAND_MAX] = { - [SWAP_EXEC_ACTIVATE] = "ExecActivate", + [SWAP_EXEC_ACTIVATE] = "ExecActivate", [SWAP_EXEC_DEACTIVATE] = "ExecDeactivate", }; DEFINE_STRING_TABLE_LOOKUP(swap_exec_command, SwapExecCommand); static const char* const swap_result_table[_SWAP_RESULT_MAX] = { - [SWAP_SUCCESS] = "success", - [SWAP_FAILURE_RESOURCES] = "resources", - [SWAP_FAILURE_TIMEOUT] = "timeout", - [SWAP_FAILURE_EXIT_CODE] = "exit-code", - [SWAP_FAILURE_SIGNAL] = "signal", - [SWAP_FAILURE_CORE_DUMP] = "core-dump", + [SWAP_SUCCESS] = "success", + [SWAP_FAILURE_RESOURCES] = "resources", + [SWAP_FAILURE_TIMEOUT] = "timeout", + [SWAP_FAILURE_EXIT_CODE] = "exit-code", + [SWAP_FAILURE_SIGNAL] = "signal", + [SWAP_FAILURE_CORE_DUMP] = "core-dump", [SWAP_FAILURE_START_LIMIT_HIT] = "start-limit-hit", }; |