udev: use ENODATA when 'No entry found from hwdb'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Jan 2019 08:55:33 +0000 (17:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Jan 2019 09:04:10 +0000 (18:04 +0900)
commit8d6c4b310d8550871f37858ff0bb26425c7bc1df
tree439baf60cb1262287a11af2799de0fd4a947e28a
parenta1193286085ba0b6962df4e4a5fed0a3dc553772
udev: use ENODATA when 'No entry found from hwdb'

Before:
IMPORT builtin 'hwdb' fails: No such file or directory

After:
IMPORT builtin 'hwdb' fails: No data available

Previous log is confusing and may be understood as hwdb file not exist.
src/udev/udev-builtin-hwdb.c