[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJfuBxwXcbVzOJ+0_YB8sXBxyw62T2aXJ7Vr4U=9WLE6R1iz1g@mail.gmail.com>
Date: Wed, 27 Jul 2011 11:27:54 -0600
From: Jim Cromie <jim.cromie@...il.com>
To: Bart Van Assche <bvanassche@....org>
Cc: jbaron@...hat.com, joe@...ches.com, gregkh@...e.de,
linux-kernel@...r.kernel.org, gnb@...h.org
Subject: Re: [PATCH 16/25] dynamic_debug: require 'a' flag to explicitly mark
pending queries
On Tue, Jul 26, 2011 at 1:26 AM, Bart Van Assche <bvanassche@....org> wrote:
> On Mon, Jul 25, 2011 at 11:42 PM, Jim Cromie <jim.cromie@...il.com> wrote:
>> + if (!q1->module ^ !q2->module ||
>> + !q1->filename ^ !q2->filename ||
>> + !q1->function ^ !q2->function ||
>> + !q1->format ^ !q2->format)
>> + return false; /* a match-spec set/unset state differs */
>
> I'd suggest to use "!=" here instead of "^" when testing booleans for
> inequality. At least for me that would make the above code easier to
> read.
>
> Bart.
>
yes. ^ is esoteric compared to !=
my github tree updated accordingly,
git://github.com/jimc/linux-2.6.git dyndbg-next
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists