summaryrefslogtreecommitdiff
path: root/src/monitor
diff options
context:
space:
mode:
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;
}