@@ -2590,20 +2590,20 @@ static int setup_bus(ctx *ctx)
2590
2590
// Must use the default loop so that dfree() can use it without context.
2591
2591
rc = sd_event_default (& ctx -> event );
2592
2592
if (rc < 0 ) {
2593
- warnx ("sd_event failed " );
2593
+ warnx ("Failed creating event loop " );
2594
2594
goto out ;
2595
2595
}
2596
2596
2597
2597
rc = sd_bus_default (& ctx -> bus );
2598
2598
if (rc < 0 ) {
2599
- warnx ("Couldn't get bus " );
2599
+ warnx ("Couldn't connect to D-Bus " );
2600
2600
goto out ;
2601
2601
}
2602
2602
2603
2603
rc = sd_bus_attach_event (ctx -> bus , ctx -> event ,
2604
2604
SD_EVENT_PRIORITY_NORMAL );
2605
2605
if (rc < 0 ) {
2606
- warnx ("Failed attach" );
2606
+ warnx ("Failed attach to event loop " );
2607
2607
goto out ;
2608
2608
}
2609
2609
@@ -2616,7 +2616,7 @@ static int setup_bus(ctx *ctx)
2616
2616
bus_mctpd_find ,
2617
2617
ctx );
2618
2618
if (rc < 0 ) {
2619
- warnx ("Failed dbus object" );
2619
+ warnx ("Failed creating D-Bus object" );
2620
2620
goto out ;
2621
2621
}
2622
2622
@@ -2627,7 +2627,7 @@ static int setup_bus(ctx *ctx)
2627
2627
bus_endpoint_find ,
2628
2628
ctx );
2629
2629
if (rc < 0 ) {
2630
- warnx ("Failed dbus fallback endpoint %s" , strerror (- rc ));
2630
+ warnx ("Failed adding D-Bus interface: %s" , strerror (- rc ));
2631
2631
goto out ;
2632
2632
}
2633
2633
@@ -2638,7 +2638,7 @@ static int setup_bus(ctx *ctx)
2638
2638
bus_endpoint_find ,
2639
2639
ctx );
2640
2640
if (rc < 0 ) {
2641
- warnx ("Failed dbus fallback endpoint %s" , strerror (- rc ));
2641
+ warnx ("Failed adding extra D-Bus interface: %s" , strerror (- rc ));
2642
2642
goto out ;
2643
2643
}
2644
2644
@@ -2650,20 +2650,20 @@ static int setup_bus(ctx *ctx)
2650
2650
bus_endpoint_find_uuid ,
2651
2651
ctx );
2652
2652
if (rc < 0 ) {
2653
- warnx ("Failed dbus fallback endpoint uuid %s" , strerror (- rc ));
2653
+ warnx ("Failed adding uuid D-Bus interface: %s" , strerror (- rc ));
2654
2654
goto out ;
2655
2655
}
2656
2656
2657
2657
rc = sd_bus_add_object_manager (ctx -> bus , NULL , MCTP_DBUS_PATH );
2658
2658
if (rc < 0 ) {
2659
- warnx ("%s failed %s" , __func__ , strerror (- rc ));
2659
+ warnx ("Adding object manager failed: %s" , strerror (- rc ));
2660
2660
goto out ;
2661
2661
}
2662
2662
2663
2663
rc = sd_bus_add_node_enumerator (ctx -> bus , NULL ,
2664
2664
MCTP_DBUS_PATH , mctpd_dbus_enumerate , ctx );
2665
2665
if (rc < 0 ) {
2666
- warnx ("Failed add enumerator" );
2666
+ warnx ("Failed to add node enumerator: %s" , strerror ( - rc ) );
2667
2667
goto out ;
2668
2668
}
2669
2669
0 commit comments