Skip to content
Commit a22afaa1 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov
Browse files

cr-check: use pr_* right



In a few cases, such as after open() or access() gave an error,
using pr_perror() is preferable as it gives us errno.

In some cases, use pr_err() instead of pr_msg() -- for consistency.

In cases after sys_* calls, errno is not set but is returned
and so to use pr_perror() we should assign errno manually.

Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 63a11487
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment