summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-monitor.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-25 16:30:19 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-25 16:30:19 -0500
commitd98458c3c486f80dbf43287fb6b285d4e3806444 (patch)
treef9767be2886d7d338af2ed15e887dc05a0de1ce7 /src/libudev/libudev-monitor.c
parent3bbbd500c9ae7afe80540e95d8b3dfc15e20c8e1 (diff)
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable. Too bad. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev-monitor.c')
-rw-r--r--src/libudev/libudev-monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c
index ae1b95b0b3..f6270fd860 100644
--- a/src/libudev/libudev-monitor.c
+++ b/src/libudev/libudev-monitor.c
@@ -623,8 +623,8 @@ retry:
}
} else if (snl.nl.nl_groups == UDEV_MONITOR_KERNEL) {
if (snl.nl.nl_pid > 0) {
- log_debug("multicast kernel netlink message from pid %d ignored",
- snl.nl.nl_pid);
+ log_debug("multicast kernel netlink message from PID %"PRIu32" ignored",
+ snl.nl.nl_pid);
return NULL;
}
}
@@ -637,7 +637,7 @@ retry:
cred = (struct ucred *)CMSG_DATA(cmsg);
if (cred->uid != 0) {
- log_debug("sender uid=%d, message ignored", cred->uid);
+ log_debug("sender uid="UID_FMT", message ignored", cred->uid);
return NULL;
}