From: Franck Bui Date: Thu, 20 Jun 2019 14:09:51 +0000 (+0200) Subject: coredump: make use of STRINGIFY X-Git-Tag: v243-rc1~219^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=274fa9413265b8b7393afac9b4db48a0a7af3588;p=thirdparty%2Fsystemd.git coredump: make use of STRINGIFY --- diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 2cceb49f4b1..355ab51f398 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);