diff --git a/libfreerdp/core/license.c b/libfreerdp/core/license.c index dc96014a9..4d3a53a0f 100644 --- a/libfreerdp/core/license.c +++ b/libfreerdp/core/license.c @@ -241,7 +241,7 @@ int license_recv(rdpLicense* license, wStream* s) 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; } @@ -252,7 +252,7 @@ int license_recv(rdpLicense* license, wStream* s) { 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; } } @@ -268,7 +268,7 @@ int license_recv(rdpLicense* license, wStream* s) if (status < 0) { - fprintf(stderr, "Unexpected license packet.\n"); + fprintf(stderr, "%s: unexpected license packet.\n", __FUNCTION__); return status; } @@ -308,7 +308,7 @@ int license_recv(rdpLicense* license, wStream* s) break; default: - fprintf(stderr, "invalid bMsgType:%d\n", bMsgType); + fprintf(stderr, "%s: invalid bMsgType:%d\n", __FUNCTION__, bMsgType); return FALSE; } diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index b322fe753..15c5b9cf5 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -544,7 +544,7 @@ static void update_end_paint(rdpContext* context) 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); }