Print function name when emiting an error
This commit is contained in:
parent
0ea1dc43ec
commit
9c18ae5bee
@ -241,7 +241,7 @@ int license_recv(rdpLicense* license, wStream* s)
|
|||||||
|
|
||||||
if (!rdp_read_header(license->rdp, s, &length, &channelId))
|
if (!rdp_read_header(license->rdp, s, &length, &channelId))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Incorrect RDP header.\n");
|
fprintf(stderr, "%s: Incorrect RDP header.\n", __FUNCTION__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ int license_recv(rdpLicense* license, wStream* s)
|
|||||||
{
|
{
|
||||||
if (!rdp_decrypt(license->rdp, s, length - 4, securityFlags))
|
if (!rdp_decrypt(license->rdp, s, length - 4, securityFlags))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "rdp_decrypt failed\n");
|
fprintf(stderr, "%s: rdp_decrypt failed\n", __FUNCTION__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,7 +268,7 @@ int license_recv(rdpLicense* license, wStream* s)
|
|||||||
|
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Unexpected license packet.\n");
|
fprintf(stderr, "%s: unexpected license packet.\n", __FUNCTION__);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ int license_recv(rdpLicense* license, wStream* s)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "invalid bMsgType:%d\n", bMsgType);
|
fprintf(stderr, "%s: invalid bMsgType:%d\n", __FUNCTION__, bMsgType);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ static void update_end_paint(rdpContext* context)
|
|||||||
|
|
||||||
if (update->numberOrders > 0)
|
if (update->numberOrders > 0)
|
||||||
{
|
{
|
||||||
printf("Sending %d orders\n", update->numberOrders);
|
fprintf(stderr, "%s: sending %d orders\n", __FUNCTION__, update->numberOrders);
|
||||||
fastpath_send_update_pdu(context->rdp->fastpath, FASTPATH_UPDATETYPE_ORDERS, s);
|
fastpath_send_update_pdu(context->rdp->fastpath, FASTPATH_UPDATETYPE_ORDERS, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user