Loading adb/adb.h +3 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,9 @@ void put_apacket(apacket *p); int check_header(apacket *p); int check_data(apacket *p); // Define it if you want to dump packets. #define DEBUG_PACKETS 0 #if !DEBUG_PACKETS #define print_packet(tag,p) do {} while (0) #endif Loading adb/adb_client.c +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ int adb_connect(const char *service) fd = _adb_connect(service); if(fd == -1) { D("_adb_connect error: %s\n", __adb_error); D("_adb_connect error: %s", __adb_error); } else if(fd == -2) { fprintf(stderr,"** daemon still not running\n"); } Loading adb/adb_trace.h +13 −11 Original line number Diff line number Diff line Loading @@ -73,8 +73,9 @@ void adb_trace_init(void); if (ADB_TRACING) { \ int save_errno = errno; \ adb_mutex_lock(&D_lock); \ fprintf(stderr, "%s::%s():", \ __FILE__, __FUNCTION__); \ fprintf(stderr, "%16s: %5d:%5lu | ", \ __FUNCTION__, \ getpid(), adb_thread_id()); \ errno = save_errno; \ fprintf(stderr, __VA_ARGS__ ); \ fflush(stderr); \ Loading @@ -98,8 +99,9 @@ void adb_trace_init(void); do { \ int save_errno = errno; \ adb_mutex_lock(&D_lock); \ fprintf(stderr, "%s::%s():", \ __FILE__, __FUNCTION__); \ fprintf(stderr, "%16s: %5d:%5lu | ", \ __FUNCTION__, \ getpid(), adb_thread_id()); \ errno = save_errno; \ fprintf(stderr, __VA_ARGS__ ); \ fflush(stderr); \ Loading adb/fdevent.c +2 −0 Original line number Diff line number Diff line Loading @@ -661,6 +661,8 @@ void fdevent_subproc_setup() if(adb_socketpair(s)) { FATAL("cannot create shell-exit socket-pair\n"); } D("socketpair: (%d,%d)", s[0], s[1]); SHELL_EXIT_NOTIFY_FD = s[0]; fdevent *fde; fde = fdevent_create(s[1], fdevent_subproc_event_func, NULL); Loading adb/jdwp_service.c +1 −0 Original line number Diff line number Diff line Loading @@ -415,6 +415,7 @@ FoundIt: __FUNCTION__, strerror(errno)); return -1; } D("socketpair: (%d,%d)", fds[0], fds[1]); proc->out_fds[ proc->out_count ] = fds[1]; if (++proc->out_count == 1) Loading Loading
adb/adb.h +3 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,9 @@ void put_apacket(apacket *p); int check_header(apacket *p); int check_data(apacket *p); // Define it if you want to dump packets. #define DEBUG_PACKETS 0 #if !DEBUG_PACKETS #define print_packet(tag,p) do {} while (0) #endif Loading
adb/adb_client.c +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ int adb_connect(const char *service) fd = _adb_connect(service); if(fd == -1) { D("_adb_connect error: %s\n", __adb_error); D("_adb_connect error: %s", __adb_error); } else if(fd == -2) { fprintf(stderr,"** daemon still not running\n"); } Loading
adb/adb_trace.h +13 −11 Original line number Diff line number Diff line Loading @@ -73,8 +73,9 @@ void adb_trace_init(void); if (ADB_TRACING) { \ int save_errno = errno; \ adb_mutex_lock(&D_lock); \ fprintf(stderr, "%s::%s():", \ __FILE__, __FUNCTION__); \ fprintf(stderr, "%16s: %5d:%5lu | ", \ __FUNCTION__, \ getpid(), adb_thread_id()); \ errno = save_errno; \ fprintf(stderr, __VA_ARGS__ ); \ fflush(stderr); \ Loading @@ -98,8 +99,9 @@ void adb_trace_init(void); do { \ int save_errno = errno; \ adb_mutex_lock(&D_lock); \ fprintf(stderr, "%s::%s():", \ __FILE__, __FUNCTION__); \ fprintf(stderr, "%16s: %5d:%5lu | ", \ __FUNCTION__, \ getpid(), adb_thread_id()); \ errno = save_errno; \ fprintf(stderr, __VA_ARGS__ ); \ fflush(stderr); \ Loading
adb/fdevent.c +2 −0 Original line number Diff line number Diff line Loading @@ -661,6 +661,8 @@ void fdevent_subproc_setup() if(adb_socketpair(s)) { FATAL("cannot create shell-exit socket-pair\n"); } D("socketpair: (%d,%d)", s[0], s[1]); SHELL_EXIT_NOTIFY_FD = s[0]; fdevent *fde; fde = fdevent_create(s[1], fdevent_subproc_event_func, NULL); Loading
adb/jdwp_service.c +1 −0 Original line number Diff line number Diff line Loading @@ -415,6 +415,7 @@ FoundIt: __FUNCTION__, strerror(errno)); return -1; } D("socketpair: (%d,%d)", fds[0], fds[1]); proc->out_fds[ proc->out_count ] = fds[1]; if (++proc->out_count == 1) Loading