Skip to content

Commit

Permalink
Revert "Turn off the TRACE output by default (OpenAtomFoundation#1808)…
Browse files Browse the repository at this point in the history
…" (OpenAtomFoundation#1814)

This reverts commit f104cda.
  • Loading branch information
AlexStocks authored Jul 25, 2023
1 parent f104cda commit c319cdb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/storage/src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
#define SRC_DEBUG_H_

#ifndef NDEBUG
# define TRACE(M, ...) fprintf(stderr, "[TRACE] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
# define DEBUG(M, ...) fprintf(stderr, "[Debug] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
#else
# define TRACE(M, ...) {}
# define DEBUG(M, ...) {}
#endif // NDEBUG

#ifdef TRACE_ON
# define TRACE(M, ...) fprintf(stderr, "[TRACE] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
#else
# define TRACE(M, ...) {}
#endif

#endif // SRC_DEBUG_H_

0 comments on commit c319cdb

Please sign in to comment.