cdba-server: notify users when fastboot connection is opened

Notify users of cdba-server when fastboot connection is opened to ease
remote debugging of issues.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
This commit is contained in:
Dmitry Baryshkov
2020-12-18 14:43:31 +03:00
committed by Bjorn Andersson
parent 961792677a
commit 42f8108e7c

View File

@@ -83,6 +83,8 @@ static void fastboot_opened(struct fastboot *fb, void *data)
const uint8_t one = 1;
struct msg *msg;
warnx("fastboot connection opened");
msg = alloca(sizeof(*msg) + 1);
msg->type = MSG_FASTBOOT_PRESENT;
msg->len = 1;