From 19672806d20dd6c6d1450161b62015f4e3dd9293 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 28 Jan 2010 15:42:50 +0000 Subject: [PATCH] Fix some more cc warnings. --- src/lib/drivers/arygon.c | 2 +- src/lib/drivers/pn532_uart.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/drivers/arygon.c b/src/lib/drivers/arygon.c index b93b009..fb88888 100644 --- a/src/lib/drivers/arygon.c +++ b/src/lib/drivers/arygon.c @@ -96,7 +96,7 @@ nfc_device_t* arygon_connect(const nfc_device_desc_t* pndd) if( pndd == NULL ) { #ifndef SERIAL_AUTOPROBE_ENABLED - INFO("Sorry, serial auto-probing have been disabled at compile time."); + INFO("%s", "Sorry, serial auto-probing have been disabled at compile time."); return NULL; #else /* SERIAL_AUTOPROBE_ENABLED */ DBG("Trying to find ARYGON device on serial port: %s# at %d bauds.",SERIAL_STRING, SERIAL_DEFAULT_PORT_SPEED); diff --git a/src/lib/drivers/pn532_uart.c b/src/lib/drivers/pn532_uart.c index ce93ec8..cf6fbea 100644 --- a/src/lib/drivers/pn532_uart.c +++ b/src/lib/drivers/pn532_uart.c @@ -87,20 +87,20 @@ pn532_uart_pick_device (void) bool pn532_uart_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound) { - serial_port sp; - char acConnect[BUFFER_LENGTH]; - int iDevice; - /* @note: Due to UART bus we can't know if its really a pn532 without * sending some PN53x commands. But using this way to probe devices, we can * have serious problem with other device on this bus */ *pszDeviceFound = 0; #ifndef SERIAL_AUTOPROBE_ENABLED - INFO("Sorry, serial auto-probing have been disabled at compile time."); + INFO("%s", "Sorry, serial auto-probing have been disabled at compile time."); return false; #else /* SERIAL_AUTOPROBE_ENABLED */ + serial_port sp; + char acConnect[BUFFER_LENGTH]; + int iDevice; + // I have no idea how MAC OS X deals with multiple devices, so a quick workaround for (iDevice=0; iDevice