mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64
This commit is contained in:
parent
d6b07ef796
commit
d71618654a
@ -722,6 +722,18 @@ int bus_print_property(const char *name, sd_bus_message *property, bool all) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
case SD_BUS_TYPE_INT64: {
|
||||
int64_t i;
|
||||
|
||||
r = sd_bus_message_read_basic(property, type, &i);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
printf("%s=%lld\n", name, (long long) i);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
case SD_BUS_TYPE_UINT32: {
|
||||
uint32_t u;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user