Commit 8eaf6250 authored by Jerome Hugues's avatar Jerome Hugues
Browse files

* Adjust port name

    For openaadl/ocarina#251
parent 1e99d70f
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2010-2018 ESA & ISAE. * Copyright (C) 2010-2020 ESA & ISAE.
*/ */
...@@ -351,7 +351,7 @@ int __po_hi_initialize () ...@@ -351,7 +351,7 @@ int __po_hi_initialize ()
case __PO_HI_IN_DATA_INTER_PROCESS: case __PO_HI_IN_DATA_INTER_PROCESS:
CREATE_SAMPLING_PORT CREATE_SAMPLING_PORT
(__po_hi_transport_get_model_name (tmp), (__po_hi_get_port_name (tmp),
__po_hi_transport_get_data_size (tmp), __po_hi_transport_get_data_size (tmp),
DESTINATION, DESTINATION,
PERIOD, PERIOD,
...@@ -366,7 +366,7 @@ int __po_hi_initialize () ...@@ -366,7 +366,7 @@ int __po_hi_initialize ()
case __PO_HI_OUT_DATA_INTER_PROCESS: case __PO_HI_OUT_DATA_INTER_PROCESS:
CREATE_SAMPLING_PORT CREATE_SAMPLING_PORT
(__po_hi_transport_get_model_name (tmp), (__po_hi_get_port_name (tmp),
__po_hi_transport_get_data_size (tmp), __po_hi_transport_get_data_size (tmp),
SOURCE, SOURCE,
PERIOD, PERIOD,
...@@ -380,8 +380,8 @@ int __po_hi_initialize () ...@@ -380,8 +380,8 @@ int __po_hi_initialize ()
case __PO_HI_IN_EVENT_DATA_INTER_PROCESS: case __PO_HI_IN_EVENT_DATA_INTER_PROCESS:
CREATE_QUEUING_PORT CREATE_QUEUING_PORT
(__po_hi_transport_get_model_name (tmp), (__po_hi_get_port_name (tmp),
1024, 40 + __po_hi_transport_get_data_size (tmp),
__po_hi_transport_get_queue_size (tmp), __po_hi_transport_get_queue_size (tmp),
DESTINATION, DESTINATION,
FIFO, FIFO,
...@@ -389,14 +389,16 @@ int __po_hi_initialize () ...@@ -389,14 +389,16 @@ int __po_hi_initialize ()
&rc); &rc);
if (rc != NO_ERROR) { if (rc != NO_ERROR) {
__PO_HI_DEBUG_CRITICAL("CREATE_QUEUING_PORT error %d\n", rc); __PO_HI_DEBUG_CRITICAL("CREATE_QUEUING_PORT (IN) error %d %s size= %d\n",
rc, __po_hi_get_port_name (tmp),
40 + __po_hi_transport_get_data_size (tmp));
} }
break; break;
case __PO_HI_OUT_EVENT_DATA_INTER_PROCESS: case __PO_HI_OUT_EVENT_DATA_INTER_PROCESS:
CREATE_QUEUING_PORT CREATE_QUEUING_PORT
(__po_hi_transport_get_model_name (tmp), (__po_hi_get_port_name (tmp),
1024, //__po_hi_transport_get_data_size (tmp), 40 + __po_hi_transport_get_data_size (tmp),
__po_hi_transport_get_queue_size (tmp), __po_hi_transport_get_queue_size (tmp),
SOURCE, SOURCE,
FIFO, FIFO,
...@@ -404,7 +406,9 @@ int __po_hi_initialize () ...@@ -404,7 +406,9 @@ int __po_hi_initialize ()
&rc); &rc);
if (rc != NO_ERROR) { if (rc != NO_ERROR) {
__PO_HI_DEBUG_CRITICAL("CREATE_QUEUING_PORT error %d\n", rc); __PO_HI_DEBUG_CRITICAL("CREATE_QUEUING_PORT (IN) error %d %s size= %d\n",
rc, __po_hi_get_port_name (tmp),
40 + __po_hi_transport_get_data_size (tmp));
} }
break; break;
...@@ -479,7 +483,7 @@ int __po_hi_wait_initialization (void) ...@@ -479,7 +483,7 @@ int __po_hi_wait_initialization (void)
pthread_mutex_unlock (&mutex_init); pthread_mutex_unlock (&mutex_init);
#if defined(__PO_HI_USE_VCD) && defined(__unix__) #if defined(__PO_HI_USE_VCD) && defined(__unix__)
/* initialize parameters used to save the vcd trace */ /* initialize parameters used to save the vcd trace */
__PO_HI_INITIALIZE_VCD_TRACE __PO_HI_INITIALIZE_VCD_TRACE
#endif #endif
......
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