[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] hw/arm/exynos: Convert fprintf to error_rep
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] hw/arm/exynos: Convert fprintf to error_report() |
Date: |
Mon, 6 Mar 2017 10:55:12 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 03/05/2017 03:48 PM, Krzysztof Kozlowski wrote:
> error_report() is preferred over fprintf() for logging errors. Also
> remove square brackets [] and additional new line characters in printed
> messages.
>
> Signed-off-by: Krzysztof Kozlowski <address@hidden>
> ---
I don't see a 0/3 cover letter. When sending multiple patches, it's
always best to package them in-reply-to the cover letter ('git config
format.coverLetter auto' makes it easy to remember).
> @@ -101,9 +102,8 @@ static Exynos4210State
> *exynos4_boards_init_common(MachineState *machine,
> MachineClass *mc = MACHINE_GET_CLASS(machine);
>
> if (smp_cpus != EXYNOS4210_NCPUS && !qtest_enabled()) {
> - fprintf(stderr, "%s board supports only %d CPU cores. Ignoring
> smp_cpus"
> - " value.\n",
> - mc->name, EXYNOS4210_NCPUS);
> + error_report("%s board supports only %d CPU cores. Ignoring smp_cpus
> value.",
Most uses of error_report() avoid trailing dot.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 2/3] hw/arm/exynos4210: Constify data pointed by few arguments and variables, (continued)
- [Qemu-devel] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Krzysztof Kozlowski, 2017/03/05
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Philippe Mathieu-Daudé, 2017/03/05
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Peter Maydell, 2017/03/06
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Paolo Bonzini, 2017/03/06
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Peter Maydell, 2017/03/06
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Philippe Mathieu-Daudé, 2017/03/06
- Re: [Qemu-devel] [Qemu-arm] [PATCH 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability, Krzysztof Kozlowski, 2017/03/06
- Re: [Qemu-devel] [Qemu-arm] [PATCH 1/3] hw/arm/exynos: Convert fprintf to error_report(), Philippe Mathieu-Daudé, 2017/03/05
- Re: [Qemu-devel] [PATCH 1/3] hw/arm/exynos: Convert fprintf to error_report(),
Eric Blake <=