chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: log message parsing errors everywhere with a generalized bus_log_parse_error()
[elogind.git]
/
src
/
hostname
/
hostnamectl.c
diff --git
a/src/hostname/hostnamectl.c
b/src/hostname/hostnamectl.c
index 523177b27d4d412d54d7734c25130956a1aea4a4..959ec6d3b227ba4aab7fd44b1de87abbc551af0b 100644
(file)
--- a/
src/hostname/hostnamectl.c
+++ b/
src/hostname/hostnamectl.c
@@
-145,7
+145,7
@@
static int show_one_name(sd_bus *bus, const char* attr) {
r = sd_bus_message_read(reply, "s", &s);
if (r < 0)
- return
r
;
+ return
bus_log_parse_error(r)
;
printf("%s\n", s);