Commit 522153e1706cb7341d28e1d2ed8ac0b14b3028e4

Authored by Perry Werneck
1 parent 751a90df

Fixing debug message.

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
src/core/sf.c
... ... @@ -752,7 +752,15 @@ static void do_query_reply(H3270 *hSession, unsigned char code)
752 752 SET16(obptr_len, len);
753 753  
754 754 #ifdef DEBUG
755   - lib3270_trace_data(hSession,see_qcode(replies[i].code),hSession->output.buf + obptr0, len);
  755 + if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_DS_TRACE))
  756 + {
  757 + lib3270_trace_data(
  758 + hSession,
  759 + see_qcode(replies[i].code),
  760 + hSession->output.buf + obptr0,
  761 + len
  762 + );
  763 + }
756 764 #endif // DEBUG
757 765  
758 766 } else {
... ...