#
578b9733 |
| 11-Oct-2024 |
Patrick Williams <patrick@stwcx.xyz> |
bus: add error handling for bus-open calls
sd-bus can return ENOMEDIUM in some cases for bus-open calls, so we need to detect this condition rather than blindly ignoring the return value. Add appro
bus: add error handling for bus-open calls
sd-bus can return ENOMEDIUM in some cases for bus-open calls, so we need to detect this condition rather than blindly ignoring the return value. Add appropriate error handling.
Tested: ``` $ sudo builddir/example/calculator-server Password: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' what(): sdbusplus::bus::bus sdbusplus::bus::new_default(): System.Error.ENOMEDIUM: No medium found zsh: IOT instruction sudo builddir/example/calculator-server ```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7b82a9e182f21a1cbbb80fc3dbfeaaa0174a369d
show more ...
|
#
fc0bb996 |
| 11-Oct-2024 |
Patrick Williams <patrick@stwcx.xyz> |
bus: un-inline functions
Due to additional upstream error results, the bus creation functions need better error handling. This will result in larger functions that are no longer a direct sd-bus cal
bus: un-inline functions
Due to additional upstream error results, the bus creation functions need better error handling. This will result in larger functions that are no longer a direct sd-bus call and probably shouldn't be inlined. Move the functions to the `bus.cpp` file.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If141ef74a62fd04b3bbf58b0720da2a9410481a7
show more ...
|
#
32ffb03d |
| 12-Oct-2020 |
Patrick Williams <patrick@stwcx.xyz> |
server: un-inline various large functions
Save approximiately 70k (ARM32) of size from the generated library of libphosphor-dbus.so by un-inlining various large functions.
Signed-off-by: Patrick Wi
server: un-inline various large functions
Save approximiately 70k (ARM32) of size from the generated library of libphosphor-dbus.so by un-inlining various large functions.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie238ca7807960bf1577dcbb272226f197de84b01
show more ...
|