mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
CLEANUP: debug: fix indents in debug_parse_cli_show_dev
Fix indents in debug_parse_cli_show_dev() to avoid useless conflicts in case of future changes in this function or git-bisect.
This commit is contained in:
parent
7cdf5751b5
commit
ac8bd679dc
@ -584,10 +584,9 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a
|
|||||||
CAPS_TO_ULLONG(post_mortem.process.caps.boot[0].inheritable,
|
CAPS_TO_ULLONG(post_mortem.process.caps.boot[0].inheritable,
|
||||||
post_mortem.process.caps.boot[1].inheritable));
|
post_mortem.process.caps.boot[1].inheritable));
|
||||||
} else
|
} else
|
||||||
chunk_appendf(&trash, " capget() failed with: %s.\n",
|
chunk_appendf(&trash, " capget() failed at boot with: %s.\n",
|
||||||
strerror(post_mortem.process.caps.err));
|
strerror(post_mortem.process.caps.err));
|
||||||
|
|
||||||
|
|
||||||
/* let's print actual capabilities sets, could be useful in order to compare */
|
/* let's print actual capabilities sets, could be useful in order to compare */
|
||||||
if (capget(&cap_hdr_haproxy, runtime_caps) == 0) {
|
if (capget(&cap_hdr_haproxy, runtime_caps) == 0) {
|
||||||
chunk_appendf(&trash, " runtime capabilities:\n");
|
chunk_appendf(&trash, " runtime capabilities:\n");
|
||||||
@ -601,9 +600,8 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a
|
|||||||
CAPS_TO_ULLONG(runtime_caps[0].inheritable,
|
CAPS_TO_ULLONG(runtime_caps[0].inheritable,
|
||||||
runtime_caps[1].inheritable));
|
runtime_caps[1].inheritable));
|
||||||
} else
|
} else
|
||||||
chunk_appendf(&trash, " capget() failed with: %s.\n",
|
chunk_appendf(&trash, " capget() failed at runtime with: %s.\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
if ((ulong)post_mortem.process.limit_fd.rlim_cur != RLIM_INFINITY)
|
if ((ulong)post_mortem.process.limit_fd.rlim_cur != RLIM_INFINITY)
|
||||||
chunk_appendf(&trash, " fd limit (soft): %lu\n", (ulong)post_mortem.process.limit_fd.rlim_cur);
|
chunk_appendf(&trash, " fd limit (soft): %lu\n", (ulong)post_mortem.process.limit_fd.rlim_cur);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user