Skip to content

Commit

Permalink
Add some program output back in
Browse files Browse the repository at this point in the history
This patch set is proof that one should never make a change without
testing, even if it is "just" removing some debug output!  When removing
some debug output on the previous patch set, some actual program output
was also accidentally removed.
  • Loading branch information
Colin Ward committed Nov 19, 2023
1 parent 7c230ea commit e774891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ClientCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void CDir::sendRequest()
while (payload < payloadEnd && *payload != '\0')
{
name = reinterpret_cast<char *>(payload);
printf("%s\n", name);
payload += strlen(name) + 1;
READ_INT_64(size, payload);
payload += sizeof(size);
Expand Down
6 changes: 3 additions & 3 deletions RADRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,21 +439,21 @@ static void StartServer(unsigned short a_port)
/* Otherwise it is a "real" socket error, so display an error and shut down */
if (a_exception.m_result != 0)
{
printf("Unable to perform I/O on socket (Error = %d)!\n", a_exception.m_result);
printf("Unable to perform I/O on socket (Error = %d)\n", a_exception.m_result);
shutdown = true;
}
}
}
else
{
printf("failed (Error = %d)!\n", result);
printf("failed (Error = %d)\n", result);
shutdown = true;
}
} while (!g_break && !shutdown);
}
else
{
printf("Unable to listen on socket (Error = %d)!\n", result);
printf("Unable to listen on socket (Error = %d)\n", result);
shutdown = true;
}

Expand Down

0 comments on commit e774891

Please sign in to comment.