From cbd35c49a62159846cfdebcb24f299c5c34b6b16 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 29 Aug 2020 14:33:35 +0200 Subject: [PATCH] no printf --- client/src/comms.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/comms.c b/client/src/comms.c index ad82725f3..416225c0f 100644 --- a/client/src/comms.c +++ b/client/src/comms.c @@ -298,13 +298,13 @@ static void PacketResponseReceived(PacketResponseNG *packet) { PrintAndLogEx(NORMAL, "[" _BLUE_("#") "] %s", s); } else { if (flag & FLAG_INPLACE) - printf("\r"); - printf("%s", s); - if (flag & FLAG_NEWLINE) - printf("\r\n"); - } + PrintAndLogEx(NORMAL, "\r" NOLF); - fflush(stdout); + PrintAndLogEx(NORMAL, "%s" NOLF, s); + + if (flag & FLAG_NEWLINE) + PrintAndLogEx(NORMAL, ""); + } break; } case CMD_DEBUG_PRINT_INTEGERS: {