Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cutils: Document differences between parse_uint and qemu_strtou64
These two functions are subtly different, and not just because of swapped parameter order. It took me adding better unit tests to figure out why. Document the differences to make it more obvious to developers trying to pick which one to use, as well as to aid in upcoming semantic changes. While touching the documentation, adjust a mis-statement: parse_uint does not return -EINVAL on invalid base, but assert()s, like all the other qemu_strto* functions that take a base argument. Signed-off-by: Eric Blake <[email protected]> Reviewed-by: Hanna Czenczek <[email protected]> Message-Id: <[email protected]>
- Loading branch information