Skip to content

Commit

Permalink
fix: wrap print statements in VERBOSE
Browse files Browse the repository at this point in the history
---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kevmo314/scuda?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
kevmo314 committed Jan 11, 2025
1 parent 4418ca0 commit 6015049
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions codegen/manual_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ decompress_single_section(const uint8_t *input, uint8_t **output,
decompress_ret =
decompress(input, th->binarySize, *output, th->uncompressedBinarySize);

// @brodey - keeping this temporarily so that we can compare the compression
// returns
printf("decompressed return::: : %x \n", decompress_ret);
printf("compared return::: : %x \n", th->uncompressedBinarySize);

if (decompress_ret != th->uncompressedBinarySize) {
std::cout << "failed actual decompress..." << std::endl;
goto error;
Expand All @@ -143,6 +138,14 @@ decompress_single_section(const uint8_t *input, uint8_t **output,
memset(*output, 0, padding);
output_written += padding;

#ifdef VERBOSE
printf("decompressed return::: : %x \n", decompress_ret);
#endif

#ifdef VERBOSE
printf("compared return::: : %x \n", th->uncompressedBinarySize);
#endif

*output_size = output_written;
return input_read;
error:
Expand Down

0 comments on commit 6015049

Please sign in to comment.