From 274fa9413265b8b7393afac9b4db48a0a7af3588 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 20 Jun 2019 16:09:51 +0200 Subject: coredump: make use of STRINGIFY --- src/coredump/coredump.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/coredump') 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); -- cgit v1.2.3