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; }