Am 01.03.2012 01:51 schrieb Stefan Tauner:
On Thu, 01 Mar 2012 01:42:27 +0100 Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
RFC: Are those checks with abort a good idea or do they break stuff? exit(1) is not a nice thing for libflashrom, but then again, it's probably better than exploding.
at least the spi functions are able to return an error, why exit instead?!
Not all the way down the calling graph. spi_read_status_register() returns the status register itself (or garbage in case there was an error). Regards, Carl-Daniel