Messages in this thread | | | Subject | Re: [PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h | From | Joe Perches <> | Date | Tue, 18 Dec 2012 10:24:29 -0800 |
| |
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');
| |