The message length was set as decimal(ex. 0026).
It is changed to hexadecimal (ex. 001A) for first 4byte.
Change-Id: Ide15b65f5c7ff45b395988460aeae7b0b5053092
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
serial_len = strlen(client->serial);
// send message "[4 digit message length]host:sync:emulator-26101:[0|1]"
- sprintf(buf, "%04dhost:sync:%s:%01d", (serial_len + 12), client->serial, state);
+ sprintf(buf, "%04xhost:sync:%s:%01d", (serial_len + 12), client->serial, state);
+
+ INFO("send %s to client \n", buf);
if (send(s, buf, sizeof(buf), 0) == -1)
{