mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
debug: remove extra newlines in debug messages
This commit is contained in:
parent
4092ec5493
commit
1e46fae33e
@ -566,7 +566,7 @@ boolean disk_file_query_directory(DISK_FILE* file, uint32 FsInformationClass, ui
|
|||||||
}
|
}
|
||||||
xfree(ent_path);
|
xfree(ent_path);
|
||||||
|
|
||||||
DEBUG_SVC(" pattern %s matched %s\n", file->pattern, ent_path);
|
DEBUG_SVC(" pattern %s matched %s", file->pattern, ent_path);
|
||||||
|
|
||||||
uniconv = freerdp_uniconv_new();
|
uniconv = freerdp_uniconv_new();
|
||||||
ent_path = freerdp_uniconv_out(uniconv, ent->d_name, &len);
|
ent_path = freerdp_uniconv_out(uniconv, ent->d_name, &len);
|
||||||
|
@ -76,7 +76,7 @@ disk_map_posix_err(int fs_errno)
|
|||||||
rc = STATUS_UNSUCCESSFUL;
|
rc = STATUS_UNSUCCESSFUL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DEBUG_SVC("errno 0x%x mapped to 0x%x\n", fs_errno, rc);
|
DEBUG_SVC("errno 0x%x mapped to 0x%x", fs_errno, rc);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ static void rdpdr_process_receive(rdpSvcPlugin* plugin, STREAM* data_in)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUG_WARN("RDPDR component: 0x%02X packetID: 0x%02X\n", component, packetID);
|
DEBUG_WARN("RDPDR component: 0x%02X packetID: 0x%02X", component, packetID);
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_free(data_in);
|
stream_free(data_in);
|
||||||
|
@ -497,7 +497,7 @@ static uint32 handle_GetStatusChange(IRP* irp, boolean wide)
|
|||||||
cur = &readerStates[i];
|
cur = &readerStates[i];
|
||||||
|
|
||||||
DEBUG_SCARD(" \"%s\"", cur->szReader ? cur->szReader : "NULL");
|
DEBUG_SCARD(" \"%s\"", cur->szReader ? cur->szReader : "NULL");
|
||||||
DEBUG_SCARD(" user: 0x%08x, state: 0x%08x, event: 0x%08x\n",
|
DEBUG_SCARD(" user: 0x%08x, state: 0x%08x, event: 0x%08x",
|
||||||
(unsigned) cur->pvUserData, (unsigned) cur->dwCurrentState,
|
(unsigned) cur->pvUserData, (unsigned) cur->dwCurrentState,
|
||||||
(unsigned) cur->dwEventState);
|
(unsigned) cur->dwEventState);
|
||||||
|
|
||||||
@ -529,9 +529,9 @@ static uint32 handle_Cancel(IRP *irp)
|
|||||||
rv = SCardCancel(hContext);
|
rv = SCardCancel(hContext);
|
||||||
|
|
||||||
if (rv != SCARD_S_SUCCESS)
|
if (rv != SCARD_S_SUCCESS)
|
||||||
DEBUG_SCARD("Failure: %s (0x%08x)\n", pcsc_stringify_error(rv), (unsigned) rv);
|
DEBUG_SCARD("Failure: %s (0x%08x)", pcsc_stringify_error(rv), (unsigned) rv);
|
||||||
else
|
else
|
||||||
DEBUG_SCARD("Success context: 0x%08x %s\n", (unsigned) hContext, pcsc_stringify_error(rv));
|
DEBUG_SCARD("Success context: 0x%08x %s", (unsigned) hContext, pcsc_stringify_error(rv));
|
||||||
|
|
||||||
sc_output_alignment(irp, 8);
|
sc_output_alignment(irp, 8);
|
||||||
|
|
||||||
@ -1062,7 +1062,7 @@ static uint32 handle_GetAttrib(IRP* irp)
|
|||||||
stream_seek(irp->input, 0xC);
|
stream_seek(irp->input, 0xC);
|
||||||
stream_read_uint32(irp->input, hCard);
|
stream_read_uint32(irp->input, hCard);
|
||||||
|
|
||||||
DEBUG_SCARD("hcard: 0x%08x, attrib: 0x%08x (%d bytes)\n",
|
DEBUG_SCARD("hcard: 0x%08x, attrib: 0x%08x (%d bytes)",
|
||||||
(unsigned) hCard, (unsigned) dwAttrId, (int) dwAttrLen);
|
(unsigned) hCard, (unsigned) dwAttrId, (int) dwAttrLen);
|
||||||
|
|
||||||
#ifdef SCARD_AUTOALLOCATE
|
#ifdef SCARD_AUTOALLOCATE
|
||||||
|
@ -40,7 +40,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
uint16 kbdFlags;
|
uint16 kbdFlags;
|
||||||
PKBDLLHOOKSTRUCT p;
|
PKBDLLHOOKSTRUCT p;
|
||||||
|
|
||||||
DEBUG_KBD("Low-level keyboard hook, hWnd %X nCode %X wParam %X\n", g_focus_hWnd, nCode, wParam);
|
DEBUG_KBD("Low-level keyboard hook, hWnd %X nCode %X wParam %X", g_focus_hWnd, nCode, wParam);
|
||||||
|
|
||||||
if (g_focus_hWnd && (nCode == HC_ACTION))
|
if (g_focus_hWnd && (nCode == HC_ACTION))
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
flags = p->flags;
|
flags = p->flags;
|
||||||
kbdFlags = 0;
|
kbdFlags = 0;
|
||||||
|
|
||||||
DEBUG_KBD("keydown %d scanCode %04X flags %02X vkCode %02X\n",
|
DEBUG_KBD("keydown %d scanCode %04X flags %02X vkCode %02X",
|
||||||
(wParam == WM_KEYDOWN), scanCode, flags, p->vkCode);
|
(wParam == WM_KEYDOWN), scanCode, flags, p->vkCode);
|
||||||
|
|
||||||
if (wfi->fs_toggle &&
|
if (wfi->fs_toggle &&
|
||||||
@ -75,7 +75,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
if (flags & LLKHF_EXTENDED)
|
if (flags & LLKHF_EXTENDED)
|
||||||
{
|
{
|
||||||
/* Windows sends NumLock as extended - rdp doesn't */
|
/* Windows sends NumLock as extended - rdp doesn't */
|
||||||
DEBUG_KBD("hack: NumLock (x45) should not be extended\n");
|
DEBUG_KBD("hack: NumLock (x45) should not be extended");
|
||||||
flags &= ~LLKHF_EXTENDED;
|
flags &= ~LLKHF_EXTENDED;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -84,7 +84,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
* It must however be sent as a one-shot Ctrl+NumLock */
|
* It must however be sent as a one-shot Ctrl+NumLock */
|
||||||
if (wParam == WM_KEYDOWN)
|
if (wParam == WM_KEYDOWN)
|
||||||
{
|
{
|
||||||
DEBUG_KBD("Pause, sent as Ctrl+NumLock\n");
|
DEBUG_KBD("Pause, sent as Ctrl+NumLock");
|
||||||
input->KeyboardEvent(input, KBD_FLAGS_DOWN, 0x1D); /* Ctrl down */
|
input->KeyboardEvent(input, KBD_FLAGS_DOWN, 0x1D); /* Ctrl down */
|
||||||
input->KeyboardEvent(input, KBD_FLAGS_DOWN, 0x45); /* NumLock down */
|
input->KeyboardEvent(input, KBD_FLAGS_DOWN, 0x45); /* NumLock down */
|
||||||
input->KeyboardEvent(input, KBD_FLAGS_RELEASE, 0x1D); /* Ctrl up */
|
input->KeyboardEvent(input, KBD_FLAGS_RELEASE, 0x1D); /* Ctrl up */
|
||||||
@ -92,7 +92,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUG_KBD("Pause up\n");
|
DEBUG_KBD("Pause up");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
@ -101,7 +101,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
if ((scanCode == 0x36) && (flags & LLKHF_EXTENDED))
|
if ((scanCode == 0x36) && (flags & LLKHF_EXTENDED))
|
||||||
{
|
{
|
||||||
DEBUG_KBD("hack: right shift (x36) should not be extended\n");
|
DEBUG_KBD("hack: right shift (x36) should not be extended");
|
||||||
flags &= ~LLKHF_EXTENDED;
|
flags &= ~LLKHF_EXTENDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
input->KeyboardEvent(input, kbdFlags, scanCode);
|
input->KeyboardEvent(input, kbdFlags, scanCode);
|
||||||
|
|
||||||
if (p->vkCode == VK_CAPITAL)
|
if (p->vkCode == VK_CAPITAL)
|
||||||
DEBUG_KBD("caps lock is processed on client side too to toggle caps lock indicator\n");
|
DEBUG_KBD("caps lock is processed on client side too to toggle caps lock indicator");
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
@ -204,12 +204,12 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SETFOCUS:
|
case WM_SETFOCUS:
|
||||||
DEBUG_KBD("getting focus %X\n", hWnd);
|
DEBUG_KBD("getting focus %X", hWnd);
|
||||||
g_focus_hWnd = hWnd;
|
g_focus_hWnd = hWnd;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_KILLFOCUS:
|
case WM_KILLFOCUS:
|
||||||
DEBUG_KBD("loosing focus %X\n", hWnd);
|
DEBUG_KBD("loosing focus %X", hWnd);
|
||||||
if (g_focus_hWnd == hWnd)
|
if (g_focus_hWnd == hWnd)
|
||||||
g_focus_hWnd = NULL;
|
g_focus_hWnd = NULL;
|
||||||
break;
|
break;
|
||||||
|
@ -127,7 +127,7 @@ boolean tcp_connect(rdpTcp* tcp, const char* hostname, uint16 port)
|
|||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("transport_connect: getaddrinfo (%s)\n", gai_strerror(status));
|
printf("tcp_connect: getaddrinfo (%s)\n", gai_strerror(status));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -949,7 +949,7 @@ uint32 find_keyboard_layout_in_xorg_rules(char* layout, char* variant)
|
|||||||
if ((layout == NULL) || (variant == NULL))
|
if ((layout == NULL) || (variant == NULL))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
DEBUG_KBD("xkbLayout: %s\txkbVariant: %s\n", layout, variant);
|
DEBUG_KBD("xkbLayout: %s\txkbVariant: %s", layout, variant);
|
||||||
|
|
||||||
for (i = 0; i < sizeof(xkbLayouts) / sizeof(XKB_LAYOUT); i++)
|
for (i = 0; i < sizeof(xkbLayouts) / sizeof(XKB_LAYOUT); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user