[systemd-devel] [PATCH] core: remove duplicate MESSAGE= from log message

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Apr 25 19:18:14 PDT 2013


On Thu, Apr 25, 2013 at 03:14:57PM +0200, Mirco Tischler wrote:
> This was needed with log_struct_unit() but log_notice_unit() adds it
> anyway.
> ---
>  src/core/unit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/core/unit.c b/src/core/unit.c
> index c0c3ce9..b624ca6 100644
> --- a/src/core/unit.c
> +++ b/src/core/unit.c
> @@ -1468,7 +1468,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
>  
>                  if (ns != os && ns == UNIT_FAILED) {
>                          log_notice_unit(u->id,
> -                                        "MESSAGE=Unit %s entered failed state.", u->id);
> +                                        "Unit %s entered failed state.", u->id);
>                          unit_start_on_failure(u);
Applied.

Zbyszek


More information about the systemd-devel mailing list