From 4dbeff47db9ba59bd42e99f4e2978e2cbdc1c69d Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 15 Apr 2010 23:11:36 +0000 Subject: [PATCH] Fix warnings on 32bit systems: - format '%ld' expects type 'long int', but argument 2 has type 'unsigned int'; - format '%ld' expects type 'long int', but argument 2 has type 'size_t'. Tested on FreeBSD arm. --- examples/nfc-poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index 92018b2..6baaff3 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -116,10 +116,10 @@ int main(int argc, const char* argv[]) WARN("%s", "PN531 doesn't support hardware polling."); continue; } - printf("PN53x will poll during %ld ms\n", btPollNr * szTargetTypes * btPeriod * 150); + printf("PN53x will poll during %ld ms\n", (unsigned long) btPollNr * szTargetTypes * btPeriod * 150); bool res = nfc_initiator_poll_targets(pnd, &nttMifare, 1, btPollNr, btPeriod, antTargets, &szTargetFound); if( res ) { - printf("%ld target(s) have been found.\n", szTargetFound); + printf("%ld target(s) have been found.\n", (unsigned long) szTargetFound); for(uint8_t n=0; n