
7 Sep
2010
7 Sep
'10
7:32 p.m.
Le 07/09/2010 16:06, Wolfgang Denk a écrit :
Negative always represents errors, whereas positive may represent some valid return state.
He. This is _not_quite_ correct. Not in U-Boot, and not in genreal.
[But your comment asking for a negative return code is valid, of course.]
I'm a bit lost at the logic of this last sentence. If errors are not always represented as negative return values, and especially so in U-boot, then what is the rationale for supporting a request for specifically negative error return values, rather than positive, here? Not that I mind much -- as I said, ide_init() does not mind, and that's my reference -- and I'll happily put negative error codes in V3, but I like to understand why people want things.
Amicalement,
--
Albert.