chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: output unit status output strings to console, only if we actually are changing...
[elogind.git]
/
src
/
core
/
dbus-manager.c
diff --git
a/src/core/dbus-manager.c
b/src/core/dbus-manager.c
index 6181ba8248bea95d8b23f5d6e8b5f341bf7f98cf..8ba665dc3d3f978d08edcf85c2522944da30af6f 100644
(file)
--- a/
src/core/dbus-manager.c
+++ b/
src/core/dbus-manager.c
@@
-407,7
+407,7
@@
static int method_get_unit_by_pid(sd_bus *bus, sd_bus_message *message, void *us
u = manager_get_unit_by_pid(m, pid);
if (!u)
u = manager_get_unit_by_pid(m, pid);
if (!u)
- return sd_bus_error_setf(error, BUS_ERROR_NO_UNIT_FOR_PID, "PID
%u
does not belong to any loaded unit.", pid);
+ return sd_bus_error_setf(error, BUS_ERROR_NO_UNIT_FOR_PID, "PID
"PID_FMT"
does not belong to any loaded unit.", pid);
r = mac_selinux_unit_access_check(u, message, "status", error);
if (r < 0)
r = mac_selinux_unit_access_check(u, message, "status", error);
if (r < 0)