Commit 96f404d6 authored by julien.delange's avatar julien.delange
Browse files

* Add more debug information



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@1950 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 37adb2cf
TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE
TARGET_LDFLAGS = -lpthread -lrt -m32
TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE
TARGET_LDFLAGS = -lpthread -lrt -m32
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
......
......@@ -33,7 +33,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <strings.h>
#include <string.h>
/* Linux-specific files */
int po_hi_c_driver_serial_fd_read;
......@@ -82,14 +82,13 @@ void __po_hi_c_driver_serial_linux_poller (void)
if (n != __PO_HI_MESSAGES_MAX_SIZE)
{
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Inconsistent received message size !\n");
__PO_HI_DEBUG_CRITICAL ("[LINUX SERIAL] Inconsistent received message size (received %d bytes)!\n", n);
return;
}
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] read() returns %d\n", n);
msg.length = n;
swap_pointer = (unsigned long*) &msg.content[0];
swap_value = *swap_pointer;
*swap_pointer = __po_hi_swap_byte (swap_value);
......
......@@ -148,6 +148,7 @@ int __po_hi_c_driver_serial_rasta_sender (const __po_hi_task_id task_id, const _
__po_hi_msg_reallocate (&msg);
request->port = destination_port;
__PO_HI_DEBUG_INFO ("[RASTA SERIAL] Destination port= %d\n", destination_port);
__po_hi_marshall_request (request, &msg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment