summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 16:40:26 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:54 +0200
commitec0b19bd6d25e3f4afea06b28c132b602bbff180 (patch)
tree9b4ea9da9d8ec383ebd49ee3c0a4cc9589e04a29
parent701f13b5c8e27bcbfc79e77ce7c76d9f768a448c (diff)
downloadsssd-ec0b19bd6d25e3f4afea06b28c132b602bbff180.tar.gz
sssd-ec0b19bd6d25e3f4afea06b28c132b602bbff180.tar.bz2
sssd-ec0b19bd6d25e3f4afea06b28c132b602bbff180.zip
Fix formating of variables with type: key_serial_t
-rw-r--r--src/providers/krb5/krb5_delayed_online_authentication.c3
-rw-r--r--src/util/sss_format.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_delayed_online_authentication.c b/src/providers/krb5/krb5_delayed_online_authentication.c
index 87e0f3c6..46ed6f65 100644
--- a/src/providers/krb5/krb5_delayed_online_authentication.c
+++ b/src/providers/krb5/krb5_delayed_online_authentication.c
@@ -279,7 +279,8 @@ errno_t add_user_to_delayed_online_authentication(struct krb5_ctx *krb5_ctx,
talloc_free(new_pd);
return ret;
}
- DEBUG(9, ("Saved authtok of user [%s] with serial [%ld].\n",
+ DEBUG(SSSDBG_TRACE_ALL,
+ ("Saved authtok of user [%s] with serial [%"SPRIkey_ser"].\n",
new_pd->user, new_pd->key_serial));
sss_authtok_set_empty(new_pd->authtok);
#endif
diff --git a/src/util/sss_format.h b/src/util/sss_format.h
index db1a5051..ac3d3828 100644
--- a/src/util/sss_format.h
+++ b/src/util/sss_format.h
@@ -29,4 +29,7 @@
#include <inttypes.h>
+/* key_serial_t is defined in keyutils.h as typedef int32_t */
+#define SPRIkey_ser PRId32
+
#endif /* __SSS_FORMAT_H__ */