From 41354b0b972df187d5b6f6b02b26b736ec6bce23 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 20 Dec 2013 15:17:19 -0500 Subject: DEBUG: Allow debug_fn to process __FILE__ and __LINE__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In preparation for enabling journald support for the DEBUG logs, we will need to be able to pass in certain additional arguments that will be required, specifically the code file and line number. We will be able to optionally enable this in the file-based logs as well if we so choose, but for right now we will avoid breaking the log format on disk. Reviewed-by: Jakub Hrozek Reviewed-by: Lukáš Slebodník --- src/tools/selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/selinux.c b/src/tools/selinux.c index e10f806bb..1f87d40f9 100644 --- a/src/tools/selinux.c +++ b/src/tools/selinux.c @@ -122,7 +122,7 @@ static void sss_semanage_error_callback(void *varg, } if (DEBUG_IS_SET(level)) - debug_fn("libsemanage", level, "%s\n", message); + debug_fn(__FILE__, __LINE__, "libsemanage", level, "%s\n", message); free(message); } -- cgit