From 106fd16ac2d70ed9cfca90ce47cea963eb4726ba Mon Sep 17 00:00:00 2001 From: IRS Cleanroom Laptop Date: Fri, 2 Apr 2021 15:10:38 +0200 Subject: [PATCH] better diagnostic output --- linux/gpio/LinuxLibgpioIF.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux/gpio/LinuxLibgpioIF.cpp b/linux/gpio/LinuxLibgpioIF.cpp index 4b9244f..cfff3b4 100644 --- a/linux/gpio/LinuxLibgpioIF.cpp +++ b/linux/gpio/LinuxLibgpioIF.cpp @@ -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; }