From b5440f1f3d7616b181a5c7be1d45e66e04463384 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 28 Aug 2020 19:17:11 +0200 Subject: [PATCH] no printf --- client/src/cmddata.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 75179ce5e..d85733370 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -2104,11 +2104,10 @@ static int Cmdhex2bin(const char *Cmd) { else continue; - //Uses printf instead of PrintAndLog since the latter adds linebreaks to each printout for (int i = 0 ; i < 4 ; ++i) - printf("%d", (x >> (3 - i)) & 1); + PrintAndLogEx(NORMAL, "%d" NOLF, (x >> (3 - i)) & 1); } - PrintAndLogEx(NORMAL, "\n"); + PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; }