Adam Borowski <kilobyte@xxxxxxxxxx> writes: > 0 usually means a laptop on AC power, 255 is for a typical desktop. > The current code can't return 2 or any other unexpected value, but if it > ever does, an unknown error should probably be treated same as 255 unknown. > Thus, gc should be avoided only if the return code is 1. In short, your answer to my question is "What the code does is the more correct version between the two---the log message was lying." Then please do not talk about 255 but explain why "only if it is 1" is the right thing in the log message. That would make the result consistent. > As for the second paragraph,... That paragraph reads just fine.