summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-06-20 16:09:51 +0200
committerFranck Bui <fbui@suse.com>2019-06-26 11:17:23 +0200
commit274fa9413265b8b7393afac9b4db48a0a7af3588 (patch)
tree1ae235ac7b4910b6fc4053ccaa6b098e098ed976 /src/coredump
parent33fe9e3fd054e70a1f9e5af359bfe3dd8435ce67 (diff)
downloadsystemd-274fa9413265b8b7393afac9b4db48a0a7af3588.tar.gz
coredump: make use of STRINGIFY
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 2cceb49f4b..355ab51f39 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -1241,9 +1241,7 @@ static int process_kernel(int argc, char* argv[]) {
n_iovec = n_to_free;
iovec[n_iovec++] = IOVEC_MAKE_STRING("MESSAGE_ID=" SD_MESSAGE_COREDUMP_STR);
-
- assert_cc(2 == LOG_CRIT);
- iovec[n_iovec++] = IOVEC_MAKE_STRING("PRIORITY=2");
+ iovec[n_iovec++] = IOVEC_MAKE_STRING("PRIORITY=" STRINGIFY(LOG_CRIT));
assert(n_iovec <= ELEMENTSOF(iovec));
@@ -1339,8 +1337,7 @@ static int process_backtrace(int argc, char *argv[]) {
}
iovec[n_iovec++] = IOVEC_MAKE_STRING("MESSAGE_ID=" SD_MESSAGE_BACKTRACE_STR);
- assert_cc(2 == LOG_CRIT);
- iovec[n_iovec++] = IOVEC_MAKE_STRING("PRIORITY=2");
+ iovec[n_iovec++] = IOVEC_MAKE_STRING("PRIORITY=" STRINGIFY(LOG_CRIT));
assert(n_iovec <= n_allocated);