Clarify docs and error strings for scsimon (#1175)

* Better usage hints in scsimon man page

* In error message, clarify that piscsi needs to be shut down
This commit is contained in:
Daniel Markstedt
2023-06-24 13:20:15 -07:00
committed by GitHub
parent c08667a81d
commit ee658c359d
3 changed files with 19 additions and 11 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ bool GPIOBUS_Raspberry::Init(mode_e mode)
// GPIO chip open
fd = open("/dev/gpiochip0", 0);
if (fd == -1) {
LOGERROR("Unable to open /dev/gpiochip0. Is PiSCSI or RaSCSI already running?")
LOGERROR("Unable to open /dev/gpiochip0. If PiSCSI is running, please shut it down first.")
return false;
}
@@ -199,7 +199,7 @@ bool GPIOBUS_Raspberry::Init(mode_e mode)
// Get event request
if (ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, &selevreq) == -1) {
LOGERROR("Unable to register event request. Is PiSCSI or RaSCSI already running?")
LOGERROR("Unable to register event request. If PiSCSI is running, please shut it down first.")
close(fd);
return false;
}