[CRIU] [PATCH 6/7] prepare_sigactions(): use pr_perror()

Andrey Wagin avagin at gmail.com
Wed Oct 7 12:05:05 PDT 2015


Moi
On Oct 7, 2015 7:25 PM, "Kir Kolyshkin" <kir at openvz.org> wrote:
>
> Signed-off-by: Kir Kolyshkin <kir at openvz.org>
> ---
>  cr-restore.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cr-restore.c b/cr-restore.c
> index 33205e4..1abfd16 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -721,7 +721,7 @@ static int prepare_sigactions(void)
>                  */
>                 ret = sys_sigaction(sig, &act, NULL,
sizeof(k_rtsigset_t));
>                 if (ret == -1) {
> -                       pr_err("%d: Can't restore sigaction: %m\n", pid);
> +                       pr_perror("%d: Can't restore sigaction", pid);

sys_* doesn't set errno

>                         goto err;
>                 }
>
> --
> 2.4.3
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20151007/90ae7de8/attachment.html>


More information about the CRIU mailing list