of: of_property_read_bool: Increase WARN info

Show more useful information about the property
names for easier debugging.

Change-Id: I8ee1a629a81b8af792a786ce1072b0c0d9749d26
This commit is contained in:
syphyr 2018-01-17 23:02:59 +01:00
parent b1612c1d0a
commit 0c0b40adc8
1 changed files with 2 additions and 1 deletions

View File

@ -613,7 +613,8 @@ static inline bool of_property_read_bool(const struct device_node *np,
* configuration error, since even a boolean property having a value of
* 0 will be treated as "true" by the DT framework.
*/
WARN_ON(prop && prop->length);
WARN((prop && prop->length), "Boolean property %s has nonzero number of "
"value cells.\n", propname);
return prop ? true : false;
}