summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);