From a3c8390d19593b1e5277d95bfb4ab206d4785150 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Wed, 12 Feb 2014 10:12:04 -0500 Subject: Make DEBUG macro invocations variadic Use a script to update DEBUG macro invocations to use it as a variadic macro, supplying format string and its arguments directly, instead of wrapping them in parens. This script was used to update the code: grep -rwl --include '*.[hc]' DEBUG . | while read f; do mv "$f"{,.orig} perl -e \ 'use strict; use File::Slurp; my $text=read_file(\*STDIN); $text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs; print $text;' < "$f.orig" > "$f" rm "$f.orig" done Reviewed-by: Jakub Hrozek Reviewed-by: Stephen Gallagher Reviewed-by: Simo Sorce --- src/util/sss_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/sss_ssh.c') diff --git a/src/util/sss_ssh.c b/src/util/sss_ssh.c index e31876272..86903753d 100644 --- a/src/util/sss_ssh.c +++ b/src/util/sss_ssh.c @@ -45,7 +45,7 @@ sss_ssh_make_ent(TALLOC_CTX *mem_ctx, name = ldb_msg_find_attr_as_string(msg, SYSDB_NAME, NULL); if (!name) { ret = EINVAL; - DEBUG(SSSDBG_CRIT_FAILURE, ("Host is missing name attribute\n")); + DEBUG(SSSDBG_CRIT_FAILURE, "Host is missing name attribute\n"); goto done; } -- cgit