chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary casts in printfs
[elogind.git]
/
src
/
login
/
inhibit.c
diff --git
a/src/login/inhibit.c
b/src/login/inhibit.c
index ae3afdf9b738e1ba78f7213bc01516017c730f60..24e8fb04bd5544d733ff3b92ebcf581e7aa62f48 100644
(file)
--- a/
src/login/inhibit.c
+++ b/
src/login/inhibit.c
@@
-100,11
+100,11
@@
static int print_inhibitors(sd_bus *bus, sd_bus_error *error) {
get_process_comm(pid, &comm);
u = uid_to_name(uid);
get_process_comm(pid, &comm);
u = uid_to_name(uid);
- printf(" Who: %s (UID
%lu/%s, PID %lu
/%s)\n"
+ printf(" Who: %s (UID
"UID_FMT"/%s, PID "PID_FMT"
/%s)\n"
" What: %s\n"
" Why: %s\n"
" Mode: %s\n\n",
" What: %s\n"
" Why: %s\n"
" Mode: %s\n\n",
- who,
(unsigned long) uid, strna(u), (unsigned long)
pid, strna(comm),
+ who,
uid, strna(u),
pid, strna(comm),
what,
why,
mode);
what,
why,
mode);