core: tweak rdp debugging

This commit is contained in:
Mads Kiilerich 2012-03-22 14:34:08 +01:00
parent 7d6026b0f6
commit 592a99de3c
2 changed files with 4 additions and 4 deletions

View File

@ -1819,7 +1819,7 @@ boolean rdp_recv_demand_active(rdpRdp* rdp, STREAM* s)
if (channelId != MCS_GLOBAL_CHANNEL_ID) if (channelId != MCS_GLOBAL_CHANNEL_ID)
{ {
printf("channelId bad\n"); printf("expected MCS_GLOBAL_CHANNEL_ID %04x, got %04x\n", MCS_GLOBAL_CHANNEL_ID, channelId);
return false; return false;
} }
@ -1833,7 +1833,7 @@ boolean rdp_recv_demand_active(rdpRdp* rdp, STREAM* s)
if (pduType != PDU_TYPE_DEMAND_ACTIVE) if (pduType != PDU_TYPE_DEMAND_ACTIVE)
{ {
printf("pduType bad\n"); printf("expected PDU_TYPE_DEMAND_ACTIVE %04x, got %04x\n", PDU_TYPE_DEMAND_ACTIVE, pduType);
return false; return false;
} }

View File

@ -497,8 +497,8 @@ boolean rdp_recv_data_pdu(rdpRdp* rdp, STREAM* s)
} }
#ifdef WITH_DEBUG_RDP #ifdef WITH_DEBUG_RDP
if (type != DATA_PDU_TYPE_UPDATE) /* if (type != DATA_PDU_TYPE_UPDATE) */
printf("recv %s Data PDU (0x%02X), length:%d\n", DEBUG_RDP("recv %s Data PDU (0x%02X), length:%d",
type < ARRAY_SIZE(DATA_PDU_TYPE_STRINGS) ? DATA_PDU_TYPE_STRINGS[type] : "???", type, length); type < ARRAY_SIZE(DATA_PDU_TYPE_STRINGS) ? DATA_PDU_TYPE_STRINGS[type] : "???", type, length);
#endif #endif