Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Context-based output infrastructure (V3_Print, etc) and modifications to use it
[palacios.git] / palacios / src / interfaces / vmm_packet.c
index 07c86ee..9356e22 100644 (file)
@@ -26,7 +26,7 @@ static struct v3_packet_hooks * packet_hooks = 0;
 
 void V3_Init_Packet(struct v3_packet_hooks * hooks) {
     packet_hooks = hooks;
-    PrintDebug("V3 raw packet interface inited\n");
+    PrintDebug(VM_NONE, VCORE_NONE,"V3 raw packet interface inited\n");
 
     return;
 }
@@ -38,13 +38,13 @@ struct v3_packet * v3_packet_connect(struct v3_vm_info * vm,
                                     void * guest_packet_data) {
     struct v3_packet * packet = NULL;
 
-    V3_ASSERT(packet_hooks != NULL);
-    V3_ASSERT(packet_hooks->connect != NULL);
+    V3_ASSERT(vm, VCORE_NONE, packet_hooks != NULL);
+    V3_ASSERT(vm, VCORE_NONE, packet_hooks->connect != NULL);
 
     packet = V3_Malloc(sizeof(struct v3_packet));
 
     if (!packet) {
-       PrintError("Cannot allocate in connecting packet\n");
+       PrintError(vm, VCORE_NONE, "Cannot allocate in connecting packet\n");
        return NULL;
     }
 
@@ -60,15 +60,15 @@ struct v3_packet * v3_packet_connect(struct v3_vm_info * vm,
 }
 
 int v3_packet_send(struct v3_packet * packet, uint8_t * buf, uint32_t len) {
-    V3_ASSERT(packet_hooks != NULL);
-    V3_ASSERT(packet_hooks->send != NULL);
+    V3_ASSERT(VM_NONE, VCORE_NONE,packet_hooks != NULL);
+    V3_ASSERT(VM_NONE, VCORE_NONE,packet_hooks->send != NULL);
     
     return packet_hooks->send(packet, buf, len);
 }
 
 void v3_packet_close(struct v3_packet * packet) {
-    V3_ASSERT(packet_hooks != NULL);
-    V3_ASSERT(packet_hooks->close != NULL);
+    V3_ASSERT(VM_NONE, VCORE_NONE,packet_hooks != NULL);
+    V3_ASSERT(VM_NONE, VCORE_NONE,packet_hooks->close != NULL);
     
     packet_hooks->close(packet);
     V3_Free(packet);