Simple patch attached.

Thanks
Michal

PS: We should really push the patches that Lukas wrote to prevent this kind of errors. It is in thread:
[SSSD] [PATCHES] Enable printf format string checking

With them, we will get warning if do the same mistake in the future.
>From f78c2391cef95dad3fae07aea2ff28db6af3cb2c Mon Sep 17 00:00:00 2001
From: Michal Zidek <[email protected]>
Date: Tue, 20 Aug 2013 15:35:15 +0200
Subject: [PATCH] pam: Bad debug message format and parameter.

---
 src/responder/pam/pamsrv_cmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index ed3afb6..085bd88 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -981,7 +981,8 @@ static int pam_check_user_search(struct pam_auth_req *preq)
                 if (ret != EOK) {
                     /* Should not be fatal, just slower next time */
                     DEBUG(SSSDBG_MINOR_FAILURE,
-                           ("Cannot set ncache for %s\n", name, dom));
+                           ("Cannot set ncache for [%s@%s]\n", name,
+                            dom->name));
                 }
             }
 
-- 
1.7.11.2

_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to