Skip to content

Commit 89a2456

Browse files
remove extra debug print outs
1 parent 25a0414 commit 89a2456

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

apps/wolfsshd/wolfsshd.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,8 +2505,6 @@ static int SetupConsole(char* inCmd)
25052505
if (WSTRCMP(shellCmd, inCmd) != 0) {
25062506
/* if not opening a shell, pipe virtual terminal sequences to 'nul' */
25072507
if (CreatePseudoConsole(cord, sIn, INVALID_HANDLE_VALUE, 0, &pCon) != S_OK) {
2508-
wolfSSH_Log(WS_LOG_ERROR,
2509-
"[SSHD] Issue creating pseudo console");
25102508
ret = WS_FATAL_ERROR;
25112509
}
25122510
else {
@@ -2518,8 +2516,6 @@ static int SetupConsole(char* inCmd)
25182516
/* if opening a shell, pipe virtual terminal sequences back to calling process */
25192517
sOut = GetStdHandle(STD_OUTPUT_HANDLE);
25202518
if (CreatePseudoConsole(cord, sIn, sOut, 0, &pCon) != S_OK) {
2521-
wolfSSH_Log(WS_LOG_ERROR,
2522-
"[SSHD] Issue creating pseudo console");
25232519
ret = WS_FATAL_ERROR;
25242520
}
25252521
else {
@@ -2543,17 +2539,13 @@ static int SetupConsole(char* inCmd)
25432539
ext.lpAttributeList =
25442540
(PPROC_THREAD_ATTRIBUTE_LIST)HeapAlloc(GetProcessHeap(), 0, sz);
25452541
if (ext.lpAttributeList == NULL) {
2546-
wolfSSH_Log(WS_LOG_ERROR,
2547-
"[SSHD] Issue getting memory for attribute list");
25482542
ret = WS_FATAL_ERROR;
25492543
}
25502544
}
25512545

25522546
if (ret == WS_SUCCESS) {
25532547
if (InitializeProcThreadAttributeList(ext.lpAttributeList, 1, 0,
25542548
&sz) != TRUE) {
2555-
wolfSSH_Log(WS_LOG_ERROR,
2556-
"[SSHD] Issue initializing proc thread attribute");
25572549
ret = WS_FATAL_ERROR;
25582550
}
25592551
}
@@ -2562,8 +2554,6 @@ static int SetupConsole(char* inCmd)
25622554
if (UpdateProcThreadAttribute(ext.lpAttributeList, 0,
25632555
PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE,
25642556
pCon, sizeof(HPCON), NULL, NULL) != TRUE) {
2565-
wolfSSH_Log(WS_LOG_ERROR,
2566-
"[SSHD] Issue updating proc thread attribute");
25672557
ret = WS_FATAL_ERROR;
25682558
}
25692559
}
@@ -2588,8 +2578,6 @@ static int SetupConsole(char* inCmd)
25882578
if (CreateProcessW(NULL, cmd,
25892579
NULL, NULL, FALSE, EXTENDED_STARTUPINFO_PRESENT, NULL, NULL,
25902580
&ext.StartupInfo, &processInfo) != TRUE) {
2591-
wolfSSH_Log(WS_LOG_ERROR,
2592-
"[SSHD] Issue creating process, Windows error %d", GetLastError());
25932581
return WS_FATAL_ERROR;
25942582
}
25952583
else {
@@ -2609,9 +2597,6 @@ static int SetupConsole(char* inCmd)
26092597
if (GetExitCodeProcess(processInfo.hProcess, &processState)
26102598
== TRUE) {
26112599
if (processState != STILL_ACTIVE) {
2612-
wolfSSH_Log(WS_LOG_INFO,
2613-
"[SSHD] Process has exited, exit state = %d, "
2614-
"close down SSH connection", processState);
26152600
Sleep(100); /* give the stdout/stderr of process a
26162601
* little time to write to pipe */
26172602
if (PeekNamedPipe(GetStdHandle(STD_OUTPUT_HANDLE), NULL, 0, NULL, &ava, NULL)

0 commit comments

Comments
 (0)