[libnfc] push by yob...@gmail.com - Fix typo baud<>bauds thanks to Polluks on 2014-03-05 16:49 GMT

4 views
Skip to first unread message

lib...@googlecode.com

unread,
Mar 5, 2014, 11:49:26 AM3/5/14
to libnfc-...@googlegroups.com
Revision: 108de27c1b45
Author: Philippe Teuwen <yob...@gmail.com>
Date: Wed Mar 5 16:48:55 2014 UTC
Log: Fix typo baud<>bauds thanks to Polluks

http://code.google.com/p/libnfc/source/detail?r=108de27c1b45

Modified:
/contrib/win32/libnfc/buses/uart.c
/libnfc/buses/uart.c
/libnfc/drivers/acr122s.c
/libnfc/drivers/arygon.c
/libnfc/drivers/pn532_uart.c

=======================================
--- /contrib/win32/libnfc/buses/uart.c Sun Dec 8 13:15:36 2013 UTC
+++ /contrib/win32/libnfc/buses/uart.c Wed Mar 5 16:48:55 2014 UTC
@@ -123,7 +123,7 @@
{
struct serial_port_windows *spw;

- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Serial port
speed requested to be set to %d bauds.", uiPortSpeed);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Serial port
speed requested to be set to %d baud.", uiPortSpeed);
// Set port speed (Input and Output)
switch (uiPortSpeed) {
case 9600:
@@ -135,7 +135,7 @@
case 460800:
break;
default:
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to
set serial port speed to %d bauds. Speed value must be one of these
constants: 9600 (default), 19200, 38400, 57600, 115200, 230400 or 460800.",
uiPortSpeed);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to
set serial port speed to %d baud. Speed value must be one of these
constants: 9600 (default), 19200, 38400, 57600, 115200, 230400 or 460800.",
uiPortSpeed);
return;
};
spw = (struct serial_port_windows *) sp;
=======================================
--- /libnfc/buses/uart.c Tue Oct 1 12:09:14 2013 UTC
+++ /libnfc/buses/uart.c Wed Mar 5 16:48:55 2014 UTC
@@ -179,7 +179,7 @@
void
uart_set_speed(serial_port sp, const uint32_t uiPortSpeed)
{
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Serial port
speed requested to be set to %d bauds.", uiPortSpeed);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Serial port
speed requested to be set to %d baud.", uiPortSpeed);

// Portability note: on some systems, B9600 != 9600 so we have to do
// uint32_t <=> speed_t associations by hand.
@@ -215,7 +215,7 @@
break;
# endif
default:
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to
set serial port speed to %d bauds. Speed value must be one of those defined
in termios(3).",
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "Unable to
set serial port speed to %d baud. Speed value must be one of those defined
in termios(3).",
uiPortSpeed);
return;
};
=======================================
--- /libnfc/drivers/acr122s.c Tue Oct 1 12:09:14 2013 UTC
+++ /libnfc/drivers/acr122s.c Wed Mar 5 16:48:55 2014 UTC
@@ -422,7 +422,7 @@

while ((acPort = acPorts[iDevice++])) {
sp = uart_open(acPort);
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find ACR122S device on serial port: %s at %d bauds.", acPort,
ACR122S_DEFAULT_SPEED);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find ACR122S device on serial port: %s at %d baud.", acPort,
ACR122S_DEFAULT_SPEED);

if ((sp != INVALID_SERIAL_PORT) && (sp != CLAIMED_SERIAL_PORT)) {
// We need to flush input to be sure first reply does not comes from
older byte transceive
@@ -562,7 +562,7 @@
}

log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG,
- "Attempt to connect to: %s at %d bauds.", ndd.port, ndd.speed);
+ "Attempt to connect to: %s at %d baud.", ndd.port, ndd.speed);

sp = uart_open(ndd.port);
if (sp == INVALID_SERIAL_PORT) {
=======================================
--- /libnfc/drivers/arygon.c Tue Oct 1 12:09:14 2013 UTC
+++ /libnfc/drivers/arygon.c Wed Mar 5 16:48:55 2014 UTC
@@ -109,7 +109,7 @@

while ((acPort = acPorts[iDevice++])) {
sp = uart_open(acPort);
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find ARYGON device on serial port: %s at %d bauds.", acPort,
ARYGON_DEFAULT_SPEED);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find ARYGON device on serial port: %s at %d baud.", acPort,
ARYGON_DEFAULT_SPEED);

if ((sp != INVALID_SERIAL_PORT) && (sp != CLAIMED_SERIAL_PORT)) {
// We need to flush input to be sure first reply does not comes from
older byte transceive
@@ -253,7 +253,7 @@
serial_port sp;
nfc_device *pnd = NULL;

- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Attempt to
open: %s at %d bauds.", ndd.port, ndd.speed);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Attempt to
open: %s at %d baud.", ndd.port, ndd.speed);
sp = uart_open(ndd.port);

if (sp == INVALID_SERIAL_PORT)
=======================================
--- /libnfc/drivers/pn532_uart.c Mon Nov 11 23:28:38 2013 UTC
+++ /libnfc/drivers/pn532_uart.c Wed Mar 5 16:48:55 2014 UTC
@@ -82,7 +82,7 @@

while ((acPort = acPorts[iDevice++])) {
sp = uart_open(acPort);
- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find PN532 device on serial port: %s at %d bauds.", acPort,
PN532_UART_DEFAULT_SPEED);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to
find PN532 device on serial port: %s at %d baud.", acPort,
PN532_UART_DEFAULT_SPEED);

if ((sp != INVALID_SERIAL_PORT) && (sp != CLAIMED_SERIAL_PORT)) {
// We need to flush input to be sure first reply does not comes from
older byte transceive
@@ -225,7 +225,7 @@
serial_port sp;
nfc_device *pnd = NULL;

- log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Attempt to
open: %s at %d bauds.", ndd.port, ndd.speed);
+ log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Attempt to
open: %s at %d baud.", ndd.port, ndd.speed);
sp = uart_open(ndd.port);

if (sp == INVALID_SERIAL_PORT)
Reply all
Reply to author
Forward
0 new messages