>From 0c748f157be785d0f42564ff4df1784541306db5 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 16:40:26 +0200 Subject: [PATCH 09/16] Fix formating of variables with type: key_serial_t --- src/providers/krb5/krb5_delayed_online_authentication.c | 3 ++- src/util/sss_format.h | 3 +++ 2 files changed, 5 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..533127913bf92f2c2b3f2208ebf94dc30df09029 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 [%"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