Skip to content

Commit

Permalink
SimpCfg:Trim DumpHexString only if SC_DEBUG_VERBOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
hanishkvc committed May 4, 2024
1 parent 5302c49 commit 2fc82c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/simpcfg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@


#define SC_DEBUG
#undef SC_DEBUG_VERBOSE
#define SC_TEST_PRG
#ifdef SC_TEST_PRG
#define LINFO_LN(FMT, ...) fprintf(stdout, FMT"\n", __VA_ARGS__)
Expand Down Expand Up @@ -148,7 +149,7 @@ void dumphex_string(const TString &sIn, const std::string &msgTag){
//
template <typename TString>
TString str_trim_dumb(TString sin, const TString &trimChars=" \t\n") {
#ifdef SC_DEBUG
#ifdef SC_DEBUG_VERBOSE
dumphex_string(sin, "DBUG:TrimDumb:Str:");
dumphex_string(trimChars, "DBUG:TrimDumb:Tim:");
#endif
Expand Down

0 comments on commit 2fc82c7

Please sign in to comment.