Skip to content

Commit

Permalink
Remove some unwanted debug logs
Browse files Browse the repository at this point in the history
Somehow these snuck into the 64-bit RDir commit.
  • Loading branch information
Colin Ward authored and hitman-codehq committed Nov 18, 2023
1 parent 29829e8 commit 7c230ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions ClientCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ 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);
printf("%s %lld\n", name, size);
printf("%s %u %x\n", name, (uint32_t) size, (uint32_t) size);

ASSERTM((payload < payloadEnd), "CDir::sendRequest() => Payload contents do not match its size");
}
Expand Down
3 changes: 0 additions & 3 deletions ServerCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,13 @@ void CDir::execute()
}

/* Allocate a buffer large enough to hold the response payload and fill it with the file information */
printf("payloadSize = %u\n", payloadSize);
payload = new char[payloadSize];

entry = entries->getHead();

while (entry != nullptr)
{
nameLength = strlen(entry->iName);
printf("Adding %s of length %lld\n", entry->iName, entry->iSize);
printf("Adding %s of length %u %x\n", entry->iName, (uint32_t) entry->iSize, (uint32_t) entry->iSize);
memcpy(payload + offset, entry->iName, nameLength + 1);
offset += nameLength + 1;
WRITE_INT_64((payload + offset), entry->iSize);
Expand Down

0 comments on commit 7c230ea

Please sign in to comment.