[U-Boot] [PATCH] fix expression handling in itest

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Fri Feb 19 15:23:25 CET 2010


Dear all,

Attached is a patch for cmd_itest.c
This fixes data access for .b and .w
If there are issues applying the patch feel free to mail me and I will
resent from home.
And of course I am open to comments.

There is one note: the evalexp function returns a long.
For .b and .w access I choose to return an unsigned char resp unsigned
short casted to long.
It is my impression that would be desirable, but if not, feel free to change
(and it might also be desirable to change the long to unsigned long,
but as that ripples up to the caller, I decided not to touch that
part.

Best regards, Frans.



More information about the U-Boot mailing list