Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 65b4e5bc authored by Mike Yu's avatar Mike Yu
Browse files

Fix setResolverConfiguration to return negative error code

This fixes the logging bug in dumpsys netd.

For example, when resolv_set_nameservers fails:
It used to print
    setResolverConfiguration() -> ServiceSpecificException(-22, "Unknown error -22") <0.18ms>

After the fix, it prints
    setResolverConfiguration() -> ServiceSpecificException(22, "Invalid argument") <0.28ms>

Test: m com.android.resolv
Change-Id: I916e6e31dcdd2f421592e8ca71663ffbddc7b3b5
parent c4f469ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment