summaryrefslogtreecommitdiff
path: root/src/monitor
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-09-04 16:28:06 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:55 +0200
commitf2c346eaa486431ffa2a3adc05356159de834e2e (patch)
tree93b45f3b4bec2200b921be536baab59856bb0435 /src/monitor
parentaf58b15fa7f20e33736d79c6a4b3becb568517ca (diff)
downloadsssd-f2c346eaa486431ffa2a3adc05356159de834e2e.tar.gz
sssd-f2c346eaa486431ffa2a3adc05356159de834e2e.tar.bz2
sssd-f2c346eaa486431ffa2a3adc05356159de834e2e.zip
Fix formating of variables with type: uid_t
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c3
-rw-r--r--src/monitor/monitor_netlink.c5
2 files changed, 5 insertions, 3 deletions
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;
}