From 99153b4dc240c77356d51f338b889cb73c79b6c5 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 3 Sep 2021 17:50:05 +0200 Subject: [PATCH] wip --- slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c | 2 ++ .../slsDetectorServer/src/slsDetectorServer_funcs.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c b/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c index f0c3d41dd..fef7b77e8 100644 --- a/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c +++ b/slsDetectorServers/slsDetectorServer/src/programFpgaBlackfin.c @@ -159,9 +159,11 @@ int startCopyingFPGAProgram(FILE **fd, uint64_t fsize, char *mess) { memset(retvals, 0, MAX_STR_LENGTH); if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) { strcpy(mess, retvals); + LOG(logERROR, ("fail\n")); // LOG(logERROR, (mess)); already printed in executecommand return FAIL; } + LOG(logINFOBLUE, ("success\n")); } // check available memory to copy program diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index 30c77e767..87da8f791 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -3736,7 +3736,8 @@ int program_fpga(int file_des) { LOG(logERROR, (mess)); ret = FAIL; } - } + } else + LOG(logERROR, ("fail\n")); Server_SendResult(file_des, INT32, NULL, 0); if (ret == FAIL) { if (fd != NULL) {