mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
host: Always initialize libosmocore logging before using it
This avoids related ASSERTs or error messages in case any of the libosmocore / libosmousb API functions internally tries to log something. Change-Id: I611c435516856c5c8928d7810fd9a9b831adc199
This commit is contained in:
@@ -290,6 +290,8 @@ int main(int argc, char **argv)
|
||||
|
||||
transp->udp_fd = -1;
|
||||
|
||||
print_welcome();
|
||||
|
||||
osmo_init_logging2(NULL, &log_info);
|
||||
|
||||
rc = osmo_libusb_init(NULL);
|
||||
@@ -298,8 +300,6 @@ int main(int argc, char **argv)
|
||||
goto do_exit;
|
||||
}
|
||||
|
||||
print_welcome();
|
||||
|
||||
do {
|
||||
if (transp->udp_fd < 0) {
|
||||
struct usb_interface_match _ifm, *ifm = &_ifm;
|
||||
|
||||
Reference in New Issue
Block a user