On Tue, 08 Nov 2011 01:05:01 +0100
Carl-Daniel Hailfinger <[email protected]> wrote:

> >     while (ops[i] != 0) {
> > -           msg_pspew("checking for opcode 0x%02x\n", ops[i]);
> >             if (find_opcode(curopcodes, ops[i]) == -1)
> > -                   return 0;
> > +                   return ops[i];  
> 
> Can you return 1 (or -1 or some other nonzero value) instead? Returning
> one missing opcode reduces redability and provides no gain (other
> missing opcodes are ignored). Unless I'm mistaken, we'll see the
> available opcodes anyway in the verbose log.

IF there is a verbose log, you are right (the error mentioning the
missing opcode was msg_pinfo iirc). if not and flashrom bricks the
computer we wont get far without a verbose log anyway :)
i have also renamed the function as discussed on IRC.

> Acked-by: Carl-Daniel Hailfinger <[email protected]>

\o/

eventually committed in r1461.
there might be some things in the commit that you frowned upon before,
but my reply to your mails remained unanswered. one example is mixing
hex with decimal output in error messages.
-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to