From fd987ab8a2ca486a68b3b832d62e19b0c4ddbfa5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 2 Aug 2023 23:47:25 +0200 Subject: [PATCH] fix string formatter --- CHANGELOG.md | 2 ++ client/src/cmdanalyse.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dd92a393..5a5ca1b7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Added `data atr` - a command to lookup ATR (@iceman1001) + - Fixed bug in ATR lookup fct, thanks @DidierA (@iceman1001) - Updated ATR list (@iceman1001) - Changed `mem load -m` - now correctly erase all allocated flash memory (@iceman1001) - Fixed emulator quick dump to handle MFC Ev1 extra sectors (@iceman100) diff --git a/client/src/cmdanalyse.c b/client/src/cmdanalyse.c index 3713befb5..bab54f3da 100644 --- a/client/src/cmdanalyse.c +++ b/client/src/cmdanalyse.c @@ -1156,7 +1156,7 @@ static int CmdAnalyseUnits(const char *Cmd) { PrintAndLogEx(INFO, " 32 SSP = %i ETU (expect 1) " _GREEN_("ok"), SSP_TO_ETU(32)); } else if (etu) { - PrintAndLogEx(INFO, " %i ETU = %u us ", ETU_TO_US(etu), 0); + PrintAndLogEx(INFO, " %3.2f ETU = %u us ", ETU_TO_US(etu), 0); PrintAndLogEx(INFO, " %i ETU = %u SSP ", ETU_TO_SSP(etu), 0); } else if (us) { PrintAndLogEx(INFO, " %i us = %u ETU ", US_TO_ETU(us), 0);