[CRIU] [PATCH] bfd: Use LOG_PREFIX
Pavel Emelyanov
xemul at parallels.com
Tue Nov 11 08:19:58 PST 2014
Applied.
Don't forget to put ML in cc.
On 11/10/2014 11:27 PM, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> bfd.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/bfd.c b/bfd.c
> index 774368f4ff84..f89a9dffece1 100644
> --- a/bfd.c
> +++ b/bfd.c
> @@ -14,6 +14,9 @@
> #include "xmalloc.h"
> #include "asm-generic/page.h"
>
> +#undef LOG_PREFIX
> +#define LOG_PREFIX "bfd: "
> +
> /*
> * Kernel doesn't produce more than one page of
> * date per one read call on proc files.
> @@ -41,7 +44,7 @@ static int buf_get(struct xbuf *xb)
> mem = mmap(NULL, BUFBATCH * BUFSIZE, PROT_READ | PROT_WRITE,
> MAP_PRIVATE | MAP_ANON, 0, 0);
> if (mem == MAP_FAILED) {
> - pr_perror("bfd: No buf");
> + pr_perror("No buf");
> return -1;
> }
>
> @@ -135,7 +138,7 @@ static int brefill(struct bfd *f)
>
> ret = read(f->fd, b->mem + b->sz, BUFSIZE - b->sz);
> if (ret < 0) {
> - pr_perror("bfd: Error reading file");
> + pr_perror("Error reading file");
> return -1;
> }
>
>
More information about the CRIU
mailing list