fixed stupid 64-bit formatting for x86/amd64 and unix/windows - part2

This commit is contained in:
roel@libnfc.org 2013-02-28 22:33:31 +00:00
commit 1a07fd510d
4 changed files with 7 additions and 5 deletions

View file

@ -31,13 +31,13 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
// delay between requests
unsigned int d = 0;
sscanf(Cmd, "%hhu %u %u", &m, &n, &d);
sscanf(Cmd, "%"hhu" %u %u", &m, &n, &d);
// values are expected to be > 0
m = m > 0 ? m : 1;
n = n > 0 ? n : 1;
PrintAndLog("Collecting %u %hhu-byte nonces", n, m);
PrintAndLog("Collecting %u %"hhu"-byte nonces", n, m);
PrintAndLog("Start: %u", time(NULL));
// repeat n times
for (unsigned int i = 0; i < n; i++) {