# HG changeset patch # User Christian Taedcke # Date 1320745960 0 # Node ID 514108c6e4c4200efe9239da6332f31a57c1306b # Parent e23df9586397dae2aaf2d0952f0265b68b48939f Win32 IXXAT:: CHANGED: - removed newline from log messages pdo.c: FIXED: - fixed two wrong MSG_ERR calls diff -r e23df9586397 -r 514108c6e4c4 drivers/can_ixxat_win32/ixxat.cpp --- a/drivers/can_ixxat_win32/ixxat.cpp Tue Nov 08 08:59:30 2011 +0000 +++ b/drivers/can_ixxat_win32/ixxat.cpp Tue Nov 08 09:52:40 2011 +0000 @@ -273,7 +273,7 @@ void VCI_CALLBACKATTR IXXAT::message_handler(char *msg_str) { - MSG_ERR_DRV("IXXAT Message: [%S]\n", msg_str); + MSG_ERR_DRV("IXXAT Message: [%S]", msg_str); } void VCI_CALLBACKATTR IXXAT::exception_handler(VCI_FUNC_NUM func_num, INT32 err_code, UINT16 ext_err, char* err_str) @@ -310,7 +310,7 @@ "VCI_CciReqData" }; - MSG_ERR_DRV("IXXAT Exception: %S (%i / %u) [%S]\n", Num2Function[func_num], err_code, ext_err, err_str); + MSG_ERR_DRV("IXXAT Exception: %S (%i / %u) [%S]", Num2Function[func_num], err_code, ext_err, err_str); } void IXXAT::watchdog() @@ -320,7 +320,7 @@ if (res < 0) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: ERROR: Reading the can state failed!\n"); + MSG_ERR_DRV("IXXAT canBusWatchdog: ERROR: Reading the can state failed!"); } else { @@ -328,34 +328,34 @@ { if (sts.sts & STS_CAN_BUS_OFF) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: CAN bus off detected!\n"); + MSG_ERR_DRV("IXXAT canBusWatchdog: CAN bus off detected!"); } if (sts.sts & STS_CAN_DATA_OVERRUN) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: CAN data overrun detected!\n"); + MSG_ERR_DRV("IXXAT canBusWatchdog: CAN data overrun detected!"); } if (sts.sts & STS_REMOTE_QUEUE_OVERRUN) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: Remote queue overrun detected!\n"); + MSG_ERR_DRV("IXXAT canBusWatchdog: Remote queue overrun detected!"); } res = VCI_ResetCan(m_BoardHdl, CAN_NUM); if (res <= 0) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: ERROR: Resetting the can module failed with code '%d'!\n", res); + MSG_ERR_DRV("IXXAT canBusWatchdog: ERROR: Resetting the can module failed with code '%d'!", res); } res = VCI_StartCan(m_BoardHdl, CAN_NUM); if (res <= 0) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: ERROR: Restaring the can module failed with code '%d'!\n", res); + MSG_ERR_DRV("IXXAT canBusWatchdog: ERROR: Restaring the can module failed with code '%d'!", res); } } } if (SetTimer(NULL, m_watchdogTimerId, IXXAT::CAN_BUS_WATCHDOG_INTERVAL_MSEC, IXXAT::canBusWatchdog) == 0) { - MSG_ERR_DRV("\nIXXAT canBusWatchdog: ERROR: Creation of the watchdog timer failed!\n"); + MSG_ERR_DRV("IXXAT canBusWatchdog: ERROR: Creation of the watchdog timer failed!"); } } diff -r e23df9586397 -r 514108c6e4c4 src/pdo.c --- a/src/pdo.c Tue Nov 08 08:59:30 2011 +0000 +++ b/src/pdo.c Tue Nov 08 09:52:40 2011 +0000 @@ -410,7 +410,7 @@ Message pdo; if (buildPDO (d, numPdo, &pdo)) { - MSG_ERR (0x1948, " Couldn't build TPDO n�", numPdo); + MSG_ERR (0x1948, " Couldn't build TPDO number : ", numPdo); return 0xFF; } canSend (d->canHandle, &pdo); @@ -743,7 +743,7 @@ break; default: - MSG_ERR (0x1972, "Unknown state has been reached : %d", status); + MSG_ERR (0x1972, "Unknown state has been reached :", status); return 0xFF; } /* end switch case */