summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2013-12-20 15:17:19 -0500
committerJakub Hrozek <jhrozek@redhat.com>2014-02-19 12:28:05 +0100
commit41354b0b972df187d5b6f6b02b26b736ec6bce23 (patch)
tree25ffaf771fde8194dd31193fd56b4a175572de80 /src/tools
parenta37bd3e4ad3e65c7011f29384f54aa15ac3311aa (diff)
downloadsssd-41354b0b972df187d5b6f6b02b26b736ec6bce23.tar.gz
sssd-41354b0b972df187d5b6f6b02b26b736ec6bce23.tar.xz
sssd-41354b0b972df187d5b6f6b02b26b736ec6bce23.zip
DEBUG: Allow debug_fn to process __FILE__ and __LINE__
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 <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/selinux.c2
1 files changed, 1 insertions, 1 deletions
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);
}