[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH 2/4] audio: replace fprintf(stderr, ...) with
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH 2/4] audio: replace fprintf(stderr, ...) with error_report() in audio |
Date: |
Sat, 24 May 2014 01:04:29 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
10.05.2014 03:55, Le Tan wrote:
> Replace fprintf(stderr,...) with error_report() in files audio/*.
> The trailing "\n"s of the @fmt argument have been removed
> because @fmt of error_report() should not contain newline.
Please always check your patches using ./scripts/checkpatch.pl.
I've applied this your patch to -trivial, after fixing this
place:
> --- a/audio/wavcapture.c
> +++ b/audio/wavcapture.c
> @@ -63,8 +63,8 @@ static void wav_destroy (void *opaque)
> }
> doclose:
> if (fclose (wav->f)) {
> - fprintf (stderr, "wav_destroy: fclose failed: %s",
> - strerror (errno));
> + error_report("wav_destroy: fclose failed: %s",
> + strerror (errno));
to not contain an extra space after strerror, and folding whole
thing into one line. Yes, the code around has the same style,
but the usual rule is that you fix style issues in the code
you touch, to comply with the coding style used in qemu.
Thanks,
/mjt
- [Qemu-trivial] [PATCH 0/4] replace some fprintf(stderr, ...) with error_report(), Le Tan, 2014/05/10
- [Qemu-trivial] [PATCH 1/4] arch_init: replace fprintf(stderr, ...) with error_report() in arch_init.c, Le Tan, 2014/05/10
- [Qemu-trivial] [PATCH 2/4] audio: replace fprintf(stderr, ...) with error_report() in audio, Le Tan, 2014/05/10
- Re: [Qemu-trivial] [PATCH 2/4] audio: replace fprintf(stderr, ...) with error_report() in audio,
Michael Tokarev <=
- [Qemu-trivial] [PATCH 3/4] block: replace fprintf(stderr, ...) with error_report() in block/, Le Tan, 2014/05/10
- [Qemu-trivial] [PATCH 4/4] bsd-user: replace fprintf(stderr, ...) with error_report(), Le Tan, 2014/05/10