aboutsummaryrefslogtreecommitdiffstats
path: root/android/hw-qemud.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-08-05 10:15:04 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-08-08 12:52:34 -0700
commit7ffddd66de46c27c4e24d9af9b47fc0b9a8da8d1 (patch)
treeee57a024626cde31054e1a62501768ea98be46ec /android/hw-qemud.c
parenteddbb5040e396080a89828bfeb55b1c7f849f992 (diff)
downloadexternal_qemu-7ffddd66de46c27c4e24d9af9b47fc0b9a8da8d1.zip
external_qemu-7ffddd66de46c27c4e24d9af9b47fc0b9a8da8d1.tar.gz
external_qemu-7ffddd66de46c27c4e24d9af9b47fc0b9a8da8d1.tar.bz2
Fic minor bug, and update docs.
Change-Id: Ifdc2b019c499d995c8dc493dd4684dd21d0cf995
Diffstat (limited to 'android/hw-qemud.c')
-rw-r--r--android/hw-qemud.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/android/hw-qemud.c b/android/hw-qemud.c
index 16deae8..9bfeaff 100644
--- a/android/hw-qemud.c
+++ b/android/hw-qemud.c
@@ -21,8 +21,7 @@
#include "charpipe.h"
#include "cbuffer.h"
-//#define D(...) VERBOSE_PRINT(qemud,__VA_ARGS__)
-#define D(...) printf(__VA_ARGS__), printf("\n")
+#define D(...) VERBOSE_PRINT(qemud,__VA_ARGS__)
#define D_ACTIVE VERBOSE_CHECK(qemud)
/* the T(...) macro is used to dump traffic */
@@ -940,7 +939,6 @@ qemud_client_load(QEMUFile* f, QemudService* current_services )
}
/* re-connect client */
- // TODO: Save / load is_pipe here!
QemudClient* c = qemud_service_connect_client(sv, channel);
if(c == NULL)
return -EIO;
@@ -1946,7 +1944,7 @@ _qemudPipe_poll(void* opaque)
QemudClient* client = pipe->client;
unsigned ret = PIPE_WAKE_WRITE;
if (client->ProtocolSelector.Pipe.messages != NULL) {
- ret |= PIPE_WAKE_WRITE;
+ ret |= PIPE_WAKE_READ;
}
return ret;