Currently sdbd port is a dynamic number which depends
on the parameter of sdbd '--listen-port' option. The
sdbd port in the first emulator is diffrent from that
in the second emulator. This patch fixes the issue
that the second emulator cannot be recognized.
Signed-off-by: Alice Liu <alice.liu@intel.com>
Change-Id: Ic034283d0029c03fd835320104506bd9129eed90
number = get_device_serial_number();
for ( ; tries > 0; tries--, number += 10 ) {
- sprintf(buf, "tcp:%d::26101", number);
+ sprintf(buf, "tcp:%d::%d", number, number);
if(net_slirp_redir((char*)buf) < 0)
continue;