>From 5b915bc052b6261050782d1bdebc874c5844657d Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 16:40:26 +0200 Subject: [PATCH 10/16] Fix formating of variables with type: key_serial_t --- src/providers/krb5/krb5_delayed_online_authentication.c | 4 +++- src/util/sss_format.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/providers/krb5/krb5_delayed_online_authentication.c b/src/providers/krb5/krb5_delayed_online_authentication.c index 87e0f3c631def0d437aa4268e8a3cfcb439be7e0..d7f3dcd59b64e8e959b73d40a95cf4ba1a392514 100644 --- a/src/providers/krb5/krb5_delayed_online_authentication.c +++ b/src/providers/krb5/krb5_delayed_online_authentication.c @@ -27,6 +27,7 @@ #include #include #endif +#include "util/sss_format.h" #include "providers/krb5/krb5_auth.h" #include "dhash.h" @@ -279,7 +280,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 [%"PRIkey_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 db1a5051ff99171f84f53f10a1e9bc4726dde843..c9837a6e9d2f950d6d1f12d7727d43ca4b18f62e 100644 --- a/src/util/sss_format.h +++ b/src/util/sss_format.h @@ -29,4 +29,7 @@ #include +/* key_serial_t is defined in keyutils.h as typedef int32_t */ +#define PRIkey_ser PRId32 + #endif /* __SSS_FORMAT_H__ */ -- 1.8.3.1