[PATCH 07/10] Avoid <rtems/print.h> in <rtems/rtems/ratemon.h>

Chris Johns chrisj at rtems.org
Wed Jun 22 00:26:54 UTC 2016


On 21/06/2016 23:57, Sebastian Huber wrote:
> ---
>   cpukit/rtems/include/rtems/rtems/ratemon.h | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
> index 6e8fab6..3203eab 100644
> --- a/cpukit/rtems/include/rtems/rtems/ratemon.h
> +++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
> @@ -35,7 +35,8 @@
>   #include <rtems/rtems/status.h>
>   #include <rtems/score/thread.h>
>   #include <rtems/score/watchdog.h>
> -#include <rtems/print.h>
> +
> +struct rtems_printer;
>
>   #ifdef __cplusplus
>   extern "C" {
> @@ -362,7 +363,7 @@ void rtems_rate_monotonic_reset_all_statistics( void );
>    *  the Manager but actually uses other services of the Manager.
>    */
>   void rtems_rate_monotonic_report_statistics_with_plugin(
> -  const rtems_printer *printer
> +  const struct rtems_printer *printer
>   );
>

Why this way rather than the header?

Chris


More information about the devel mailing list