Re: [RFC PATCH] x86: Add a sanity test of x86 decoder

From: Ingo Molnar
Date: Wed Oct 19 2011 - 02:45:45 EST



* Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx> wrote:

> >> +static void dump_stream(FILE *fp, const char *msg, struct insn *insn)
> >> +{
> >> + int i;
> >> + fprintf(fp, "%s:\n code:", msg);
> >
> > missing newline.
>
> This prints a header of code sequence, so that we'll see a
> message like below;

I mean, it's missing the standard newline between local variable(s)
and the first statement:

static void dump_stream(FILE *fp, const char *msg, struct insn *insn)
{
int i;

fprintf(fp, "%s:\n code:", msg);
[...]

We do this for readability.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/