Printing error reason in warning

This commit is contained in:
Lorenz Meier 2013-01-13 22:42:12 +01:00
parent a6a6d9c457
commit 9ac2684ca0
1 changed files with 1 additions and 1 deletions

View File

@ -780,7 +780,7 @@ Sensors::adc_init()
_fd_adc = open(ADC_DEVICE_PATH, O_RDONLY | O_NONBLOCK);
if (_fd_adc < 0) {
warnx(ADC_DEVICE_PATH);
warn(ADC_DEVICE_PATH);
warnx("FATAL: no ADC found");
}
}