From 296f3c53cb4a87e297c019475f900fb3cca2d781 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Apr 2013 00:43:57 +0200 Subject: bus: fix formatting of bus address --- src/libsystemd-bus/test-bus-kernel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libsystemd-bus/test-bus-kernel.c b/src/libsystemd-bus/test-bus-kernel.c index 143b9d54df..2241e65adf 100644 --- a/src/libsystemd-bus/test-bus-kernel.c +++ b/src/libsystemd-bus/test-bus-kernel.c @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { bus_ref = bus_kernel_create("deine-mutter", &bus_name); assert_se(bus_ref >= 0); - address = strappend("kernel:", bus_name); + address = strappend("kernel:path=", bus_name); assert_se(address); r = sd_bus_new(&a); @@ -60,12 +60,15 @@ int main(int argc, char *argv[]) { r = sd_bus_get_unique_name(a, &ua); assert_se(r >= 0); - printf("unique a: %s", ua); + printf("unique a: %s\n", ua); r = sd_bus_get_unique_name(b, &ub); assert_se(r >= 0); - printf("unique b: %s", ub); + printf("unique b: %s\n", ub); + + sd_bus_unref(a); + sd_bus_unref(b); return 0; } -- cgit v1.2.3-54-g00ecf