From f2c346eaa486431ffa2a3adc05356159de834e2e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 4 Sep 2013 16:28:06 +0200 Subject: Fix formating of variables with type: uid_t --- src/monitor/monitor.c | 3 ++- src/monitor/monitor_netlink.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index d8bbfbcb..3d8ba262 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2695,7 +2695,8 @@ int main(int argc, const char *argv[]) uid = getuid(); if (uid != 0) { - DEBUG(SSSDBG_FATAL_FAILURE, ("Running under %d, must be root\n", uid)); + DEBUG(SSSDBG_FATAL_FAILURE, + ("Running under %"SPRIuid", must be root\n", uid)); sss_log(SSS_LOG_ALERT, "sssd must be run as root"); return 8; } diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c index 932a6bf3..c0134237 100644 --- a/src/monitor/monitor_netlink.c +++ b/src/monitor/monitor_netlink.c @@ -472,8 +472,9 @@ static int event_msg_recv(struct nl_msg *msg, void *arg) creds = nlmsg_get_creds(msg); if (!creds || creds->uid != 0) { - DEBUG(9, ("Ignoring netlink message from UID %d", - creds ? creds->uid : -1)); + DEBUG(SSSDBG_TRACE_ALL, + ("Ignoring netlink message from UID %"SPRIuid, + creds ? creds->uid : (uid_t)-1)); return NL_SKIP; } -- cgit