On 05/12/2011 08:58 AM, Jan Safranek wrote:
> Tools should use cgroup_log now.
>
> Signed-off-by: Jan Safranek<jsafr...@redhat.com>
Acked-By: Ivana Hutarova Varekova <varek...@redhat.com>

> ---
>
>   src/tools/tools-common.h |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h
> index b261dc3..3469f9d 100644
> --- a/src/tools/tools-common.h
> +++ b/src/tools/tools-common.h
> @@ -22,8 +22,12 @@
>   #include<libcgroup.h>
>   #include<libcgroup-internal.h>
>
> +#define cgroup_err(x...) cgroup_log(CGROUP_LOG_ERROR, x)
> +#define cgroup_warn(x...) cgroup_log(CGROUP_LOG_WARNING, x)
> +#define cgroup_info(x...) cgroup_log(CGROUP_LOG_INFO, x)
> +
>   #ifdef CGROUP_DEBUG
> -#define cgroup_dbg(x...) printf(x)
> +#define cgroup_dbg(x...) cgroup_log(CGROUP_LOG_DEBUG, x)
>   #else
>   #define cgroup_dbg(x...) do {} while (0)
>   #endif
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to