From 693e6767f0616b574527b6dfaa7c5868dda50f03 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 9 Nov 2012 15:30:06 -0500 Subject: [PATCH] Expand the FMT_FIRST anf FMT_CONTD macros inline so they get picked up by xgettext. --- plugins/sudoers/logging.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 2dbd0f7be..2b61f3869 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -123,9 +123,6 @@ mysyslog(int pri, const char *fmt, ...) debug_return; } -#define FMT_FIRST "%8s : %s" -#define FMT_CONTD "%8s : (command continued) %s" - /* * Log a message to syslog, pre-pending the username and splitting the * message into parts if it is longer than MAXSYSLOGLEN. @@ -144,7 +141,7 @@ do_syslog(int pri, char *msg) /* * Log the full line, breaking into multiple syslog(3) calls if necessary */ - fmt = _(FMT_FIRST); + fmt = _("%8s : %s"); maxlen = MAXSYSLOGLEN - (strlen(fmt) - 5 + strlen(user_name)); for (p = msg; *p != '\0'; ) { len = strlen(p); @@ -172,7 +169,7 @@ do_syslog(int pri, char *msg) mysyslog(pri, fmt, user_name, p); p += len; } - fmt = _(FMT_CONTD); + fmt = _("%8s : (command continued) %s"); maxlen = MAXSYSLOGLEN - (strlen(fmt) - 5 + strlen(user_name)); } -- 2.40.0