Improve error handling when the XDMA device file is not present
If XDMA device specified with DEVICE_NAME
does not exist or is of the wrong type, the IOC will output error messages continuously. Eventually filling up the log file with identical messages.
2024/02/09 11:11:24.626 Null pointer passed to a function
2024/02/09 11:11:24.626 Null pointer passed to a function
2024/02/09 11:11:25.626 Null pointer passed to a function
2024/02/09 11:11:25.626 Null pointer passed to a function
2024/02/09 11:11:25.626 Null pointer passed to a function
2024/02/09 11:11:26.626 Null pointer passed to a function
2024/02/09 11:11:26.626 Null pointer passed to a function
2024/02/09 11:11:26.626 Null pointer passed to a function
2024/02/09 11:11:27.626 Null pointer passed to a function
The IOC should fail more gracefully, print the error message once and enter a fault state. The alarm string PV should indicate that the device is not present.