Skip to content

Commit

Permalink
Revert "[C] More debug."
Browse files Browse the repository at this point in the history
This reverts commit 3745312.
  • Loading branch information
vyazelenko committed Feb 10, 2025
1 parent d649af7 commit 7f499e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aeron-client/src/main/c/util/aeron_fileutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,6 @@ bool aeron_raw_log_free(aeron_mapped_raw_log_t *mapped_raw_log, const char *file
{
if (aeron_unmap(&mapped_raw_log->mapped_file) < 0)
{
int err_code = errno;
fprintf(stdout, "*** [aeron_raw_log_free] aeron_unmap failed: errno=%d, strerror=%s, aeron_errcode=%d, aeron_errmsg=%s\n", err_code, strerror(err_code), aeron_errcode(), aeron_errmsg());
return false;
}

Expand All @@ -776,13 +774,13 @@ bool aeron_raw_log_free(aeron_mapped_raw_log_t *mapped_raw_log, const char *file
int err_code = errno;
if (err_code != 0)
{
fprintf(stdout, "*** [aeron_raw_log_free] errno is not zero: errno=%d, strerror=%s, aeron_errcode=%d, aeron_errmsg=%s\n", err_code, strerror(err_code), aeron_errcode(), aeron_errmsg());
fprintf(stdout, "*** [aeron_raw_log_free] errno is not zero: err_code=%d, err_msg=%s\n", err_code, strerror(err_code));
}

if (remove(filename) < 0)
{
err_code = errno;
fprintf(stdout, "*** [aeron_raw_log_free] remove failed: errno=%d, strerror=%s, aeron_errcode=%d, aeron_errmsg=%s, file=%s\n", err_code, strerror(err_code), aeron_errcode(), aeron_errmsg(), filename);
fprintf(stdout, "*** [aeron_raw_log_free] remove failed: err_code=%d, err_msg=%s, file=%s\n", err_code, strerror(err_code), filename);

if (aeron_file_length(filename) > 0)
{
Expand Down

0 comments on commit 7f499e0

Please sign in to comment.