lkml.org 
[lkml]   [2012]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] MCE, AMD: MCE decoding support for AMD Family 16h
From
Date
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');




\
 
 \ /
  Last update: 2012-12-18 20:01    [W:0.057 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site