On 25/10/13 16:14, Ivana Hutarova Varekova wrote:
> In the current version cgroup_create_cgroup returns warning if it fails and 
> can't set some variable. Thus on default configuration there is no 
> information about the problem. This situation happens if the cgconfigparser 
> reads cgconfig.conf. The error message where is the problem is very useful in 
> this case. The patch do the message visible in standard configuration.
>
> Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
Acked-by: Peter Schiffer <pschi...@redhat.com>
> ---
>
>   src/api.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/api.c b/src/api.c
> index 790a158..f6983f9 100644
> --- a/src/api.c
> +++ b/src/api.c
> @@ -1660,8 +1660,8 @@ int cgroup_create_cgroup(struct cgroup *cgroup, int 
> ignore_ownership)
>                        * ignore it specifically if they wish.
>                        */
>                       if (error) {
> -                             cgroup_warn("Warning: failed to set %s: %s 
> (%d)\n",
> -                                     path, cgroup_strerror(error), error);
> +                             cgroup_err("Error: failed to set %s: %s\n",
> +                                     path, cgroup_strerror(error));
>                               retval = ECGCANTSETVALUE;
>                               continue;
>                       }
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
>


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to