On Fri, 2009-01-23 at 16:19 +1100, Timothy S. Nelson wrote: > On Fri, 23 Jan 2009, Michael Ellerman wrote: > > > On Fri, 2009-01-23 at 15:24 +1100, Timothy S. Nelson wrote: > >> Hi all. I've inserted the patch I want to ask about below. It's > >> supposed to be an updated version of the patch that produces sensible errors > >> if people try to read a ROM incorrectly. The problem seems to be with the > >> line that says: > >> > >> if(! res->flags & IORESOURCE_MEM) { > > > > Which are you intending here, "not res->flags, and IORESOURCE_MEM", or > > is it "not, res->flags and IORESOURCE_MEM" ? > > if(! (res->flags & IORESOURCE_MEM)) { > > I've put the parentheses in to clarify what I mean. And does it do what you want now? > But now that I look at man perlop (perl keeps the same precedence as > C), I can see I've done it wrong. Thanks :). I was trying to prompt you to open your copy of "The C Programming Language", but I guess man perlop is an OK alternative :) cheers -- Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
Attachment:
signature.asc
Description: This is a digitally signed message part