bus: use bus_log_parse_error to print message

This commit is contained in:
fangxiuning
2020-07-12 06:33:48 +09:00
committed by Yu Watanabe
parent b159831b61
commit d67b1d18fc
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1322,7 +1322,7 @@ static int monitor(int argc, char **argv, int (*dump)(sd_bus_message *m, FILE *f
r = sd_bus_message_read(m, "s", &name);
if (r < 0)
return log_error_errno(r, "Failed to read lost name: %m");
return bus_log_parse_error(r);
if (streq(name, unique_name))
is_monitor = true;