Commit c4213347 authored by Jerome Hugues's avatar Jerome Hugues

* Minor reformatting

parent ba0eadad
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2016 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2020 ESA & ISAE.
*/
#ifndef __PO_HI_DEBUG_H__
......@@ -29,31 +29,37 @@
#include <stdio.h>
#endif
/* Some OS do not define stderr, print directly on stdout */
#ifdef AIR_HYPERVISOR
#define __PO_HI_PRINTF (s, args...) printf(s, ##args);
#else
#define __PO_HI_PRINTF (s, args...) fprintf(stderr, s, ##args); fflush(stdout);
#endif
#if __PO_HI_DEBUG_LEVEL >= __PO_HI_DEBUG_LEVEL_CRITICAL
#define __PO_HI_DEBUG_CRITICAL(s, args...) fprintf(stderr, s, ##args); fflush (stderr);
#define __PO_HI_DEBUG_CRITICAL(s, args...) __PO_HI_PRINTF(s, args);
#else
#define __PO_HI_DEBUG_CRITICAL(s, args...)
#endif
#if __PO_HI_DEBUG_LEVEL >= __PO_HI_DEBUG_LEVEL_WARNING
#define __PO_HI_DEBUG_WARNING(s, args...) fprintf(stderr, s, ##args); fflush (stderr);
#define __PO_HI_DEBUG_WARNING(s, args...) __PO_HI_PRINTF(s, args);
#else
#define __PO_HI_DEBUG_WARNING(s, args...)
#endif
#if __PO_HI_DEBUG_LEVEL >= __PO_HI_DEBUG_LEVEL_DEBUG
#define __PO_HI_DEBUG_DEBUG(s, args...) fprintf(stderr, s, ##args); fflush (stderr);
#define __PO_HI_DEBUG_DEBUG(s, args...) __PO_HI_PRINTF(s, args);
#else
#define __PO_HI_DEBUG_DEBUG(s, args...)
#endif
#if __PO_HI_DEBUG_LEVEL >= __PO_HI_DEBUG_LEVEL_INFO
#define __PO_HI_DEBUG_INFO(s, args...) fprintf(stderr, s, ##args); fflush (stderr);
#define __DEBUGMSG(s, args...) fprintf(stderr, s, ##args); fflush (stderr);
#define __PO_HI_DEBUG_INFO(s, args...) __PO_HI_PRINTF(s, args);
#define __DEBUGMSG(s, args...) __PO_HI_PRINTF(s, args);
#else
#define __PO_HI_DEBUG_INFO(s, args...)
#define __DEBUGMSG(s, args...)
#endif
#endif /* __DEBUG_H__ */
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2018 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2020 ESA & ISAE.
*/
#ifndef __PO_HI_TRANSPORT__
......@@ -88,7 +88,7 @@ int __po_hi_transport_send (__po_hi_task_id id, __po_hi_port_t por
#define __po_hi_send_output __po_hi_transport_send
/*
* \fn __po_hi_get_port_name
* \fn __po_hi_get_port_model_name
* \brief Return the name of the port similar to the name within the AADL model.
*/
char* __po_hi_get_port_model_name (const __po_hi_port_t port);
......
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