[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 3/3] move wifi activation fails logging to proper block
- From: Vratislav Podzimek <vpodzime redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH 3/3] move wifi activation fails logging to proper block
- Date: Tue, 15 Nov 2011 12:58:08 +0100
On Mon, 2011-11-14 at 09:48 -0800, Brian C. Lane wrote:
> On Fri, Nov 11, 2011 at 01:38:14PM +0100, Vratislav Podzimek wrote:
> > Otherwise we have 'wifi activation failed' log message even if there's no wifi-related line in kickstart.
> > ---
> > loader/kickstart.c | 5 ++---
> > 1 files changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/loader/kickstart.c b/loader/kickstart.c
> > index b038406..12082b1 100644
> > --- a/loader/kickstart.c
> > +++ b/loader/kickstart.c
> > @@ -671,11 +671,10 @@ int process_kickstart_wifi (struct loaderData_s * loaderData) {
> > WIFI_PROTECTION_UNPROTECTED, NULL, loaderData->ipinfo_set, loaderData->ipv4,
> > loaderData->gateway, loaderData->dns, loaderData->netmask);
> > }
> > + if (rc == WIFI_ACTIVATION_OK) loaderData->netDev_set = 1;
> > + else logMessage(ERROR, "wifi activation in kickstart failed");
>
> Please split the if/else into separate lines, it makes it more readable.
o.k., no problem, but have a look at
http://www.redhat.com/archives/anaconda-devel-list/2011-May/msg00183.html where pjones argued against this style. Time to make an Anaconda Conding Style page?
--
Vratislav Podzimek
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]