From: Alice Liu Date: Tue, 5 Aug 2014 11:12:49 +0000 (+0800) Subject: sdb: fix sdbd port to a dynamic number X-Git-Tag: TizenStudio_2.0_p3.0~407^2~83^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18fc9702ef83bae863290e267f432beb4d9517e8;p=sdk%2Femulator%2Fqemu.git sdb: fix sdbd port to a dynamic number 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 Change-Id: Ic034283d0029c03fd835320104506bd9129eed90 --- diff --git a/tizen/src/util/sdb.c b/tizen/src/util/sdb.c index 0d1c20b..44a7b31 100644 --- a/tizen/src/util/sdb.c +++ b/tizen/src/util/sdb.c @@ -202,7 +202,7 @@ void sdb_setup(void) 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;