[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1299762967.15854.335.camel@gandalf.stny.rr.com>
Date: Thu, 10 Mar 2011 08:16:07 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Lai Jiangshan <laijs@...fujitsu.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] trace-cmd: fold option parsing
On Thu, 2011-03-10 at 17:58 +0800, Lai Jiangshan wrote:
> Signed-off-by: Lai Jiangshan <laijs@...fujitsu.com>
Thanks!
>
> +#define OPT_debug 255
> +
>
> +#define OPT_cpu 255
> +#define OPT_events 254
> +#define OPT_kallsyms 253
> +
I wonder if it would look cleaner if we converted them all to enums:
enum {
OPT_kallsyms = 253,
OPT_events = 254,
OPT_cpu = 255,
};
As in the kernel, defines look ugly, and can have side-effects.
-- Steve
--
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