sdb: fix sdbd port to a dynamic number 66/25466/1
authorAlice Liu <alice.liu@intel.com>
Tue, 5 Aug 2014 11:12:49 +0000 (19:12 +0800)
committerAlice Liu <alice.liu@intel.com>
Tue, 5 Aug 2014 11:26:26 +0000 (19:26 +0800)
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

tizen/src/util/sdb.c

index 0d1c20b..44a7b31 100644 (file)
@@ -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;