better diagnostic output
This commit is contained in:
parent
2fb50360ef
commit
106fd16ac2
@ -87,8 +87,9 @@ ReturnValue_t LinuxLibgpioIF::configureRegularGpio(gpioId_t gpioId, GpiodRegular
|
||||
lineNum = regularGpio->lineNum;
|
||||
lineHandle = gpiod_chip_get_line(chip, lineNum);
|
||||
if (!lineHandle) {
|
||||
sif::error << "LinuxLibgpioIF::configureGpios: Failed to open line for GPIO with id "
|
||||
<< gpioId << std::endl;
|
||||
sif::error << "LinuxLibgpioIF::configureGpios: Failed to open line for GPIO "
|
||||
"with ID " << gpioId << "with line number " << lineNum <<
|
||||
" and chipname " << chipname << std::endl;
|
||||
gpiod_chip_close(chip);
|
||||
return RETURN_FAILED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user