qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/4] hw/audio: fix tab indentation


From: Amarjargal Gundjalam
Subject: Re: [PATCH v3 2/4] hw/audio: fix tab indentation
Date: Mon, 24 Oct 2022 23:42:01 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2


On 23/10/22 15:53, Volker Rümelin wrote:
Am 21.10.22 um 18:59 schrieb Amarjargal Gundjalam:

The TABs should be replaced with spaces, to make sure that we have a
consistent coding style with an indentation of 4 spaces everywhere.

Resolves:https://gitlab.com/qemu-project/qemu/-/issues/370
Reviewed-by: Daniel P. Berrangé<berrange@redhat.com>

Signed-off-by: Amarjargal Gundjalam<amarjargal16@gmail.com>
---
  hw/audio/fmopl.c          | 1664 ++++++++++++++++++-------------------
  hw/audio/fmopl.h          |  138 +--
  hw/audio/intel-hda-defs.h | 1008 +++++++++++-----------
  hw/audio/wm8750.c         |  270 +++---
  4 files changed, 1540 insertions(+), 1540 deletions(-)

Hi Amarjargal,

I had a look at hw/audio/fmopl.c and I think the result doesn't look right. A few comments are no longer correctly aligned. I guess you just replaced all TABs with four spaces. But this is not how TABs work.

For reference: I used the vim command

:%s/^I/    /g

and the result is identical to your file. The commands

:se ts=4 expandtab
:retab

would have been a much better starting point for the last few manual changes.

Here is another example. For the file hw/audio/wm8750.c I would have started with the following vim commands

:se ts=8 expandtab
:retab

With best regards,
Volker

Hi Volker,

Thank you for your review!

Yes, I did indeed replaced all the tabs with spaces. I'll fix all of them and update.

Best Regards,

Amarjargal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]