diff options
author | Kuba Pawlak <kubax.t.pawlak@intel.com> | 2015-10-01 13:18:41 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-10-02 10:34:48 +0300 |
commit | f8888b6b20d58f35ea999d2c2ed33091861e705c (patch) | |
tree | 7de5860f6d526f217a992ac78c636f9c7eca4d3f | |
parent | 62cf3d827e80b773ed5a248b9c609247acbaa8c2 (diff) | |
download | bluez-f8888b6b20d58f35ea999d2c2ed33091861e705c.tar.gz |
tools/sco-tester: Handle HCI emulator setup errors
Missing return is causing confusing output from sco-tester:
Read Index List callback
Status: 0x00
Failed to setup HCI emulation
eSCO CVSD - Success - pre setup failed
New hciemu instance created
eSCO CVSD - Success - done
-rw-r--r-- | tools/sco-tester.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sco-tester.c b/tools/sco-tester.c index d55d51a31..651fbe01d 100644 --- a/tools/sco-tester.c +++ b/tools/sco-tester.c @@ -160,6 +160,7 @@ static void read_index_list_callback(uint8_t status, uint16_t length, if (!data->hciemu) { tester_warn("Failed to setup HCI emulation"); tester_pre_setup_failed(); + return; } tester_print("New hciemu instance created"); |