mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-08 00:38:42 +01:00
format
This commit is contained in:
@@ -206,13 +206,11 @@ int createSymbolicLinksForDevices(int adcDeviceIndex, int dacDeviceIndex,
|
||||
// delete andcreate iio device links folder (deleting because cannot
|
||||
// overwrite symbolic links with -sf)
|
||||
if (deleteAbsoluteDirectory(mess, IIO_DEVICE_FOLDER,
|
||||
"create sym links for device trees") ==
|
||||
FAIL) {
|
||||
"create sym links for device trees") == FAIL) {
|
||||
return FAIL;
|
||||
}
|
||||
if (createAbsoluteDirectory(mess, IIO_DEVICE_FOLDER,
|
||||
"create sym links for device trees") ==
|
||||
FAIL) {
|
||||
"create sym links for device trees") == FAIL) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
@@ -243,8 +241,7 @@ int createSymbolicLinksForDevices(int adcDeviceIndex, int dacDeviceIndex,
|
||||
memset(retvals, 0, MAX_STR_LENGTH);
|
||||
if (executeCommand(cmd, retvals, logDEBUG1) == FAIL) {
|
||||
snprintf(mess, MAX_STR_LENGTH,
|
||||
"Could not create sym link [dac%d] (%s)\n", idac,
|
||||
retvals);
|
||||
"Could not create sym link [dac%d] (%s)\n", idac, retvals);
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user