X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Finterfaces%2Fvmm_packet.c;h=9356e22990973ed34d1d2479d05260c47c127e57;hb=acaadd79c597c8d5180fbfbec79c01fef3dff003;hp=07c86ee93c926c9bbec1780445cd9036e6cdb681;hpb=8361c0d1e416802f476ebd26e385a388747a4799;p=palacios.git diff --git a/palacios/src/interfaces/vmm_packet.c b/palacios/src/interfaces/vmm_packet.c index 07c86ee..9356e22 100644 --- a/palacios/src/interfaces/vmm_packet.c +++ b/palacios/src/interfaces/vmm_packet.c @@ -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);