From 18fc9702ef83bae863290e267f432beb4d9517e8 Mon Sep 17 00:00:00 2001 From: Alice Liu Date: Tue, 5 Aug 2014 19:12:49 +0800 Subject: [PATCH] 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 --- tizen/src/util/sdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4