Re: [PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h

From: Joe Perches
Date: Tue Dec 18 2012 - 13:24:17 EST


On Tue, 2012-12-18 at 18:19 +0100, Borislav Petkov wrote:
> On Mon, Dec 17, 2012 at 01:39:48PM -0600, Jacob Shin wrote:
> > Add MCE decoding logic for AMD Family 16h processors.
[]
> > + switch (xec) {
> > + case 0x04 ... 0x05:
> > + pr_cont("Parity error in %s.\n",
> > + (r4 == R4_RD ? "IBUFF" : "OBUFF"));
>
> or
> pr_cont("%sBUFF parity error.\n", ((xec == 4) ? "I" : "O"));

or without all the unnecessary parens and using char:

pr_cont("%cBUFF parity error\n", xec == 4 ? 'I' : 'O');


--
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/