mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 11:20:04 +02:00
print error
This commit is contained in:
parent
74348afcf6
commit
ed2e6e4e28
@ -14,7 +14,7 @@ int FPGATouchFlash(char *mess);
|
||||
int resetFPGA(char *mess);
|
||||
|
||||
int emptyTempFolder(char *mess);
|
||||
int allowKernelUpdate(char *mess);
|
||||
int allowKernelUpdate(char *mess, char *functionType);
|
||||
/**
|
||||
* deletes old file
|
||||
* verify memory available to copy
|
||||
|
@ -248,7 +248,7 @@ int emptyTempFolder(char *mess) {
|
||||
#endif
|
||||
}
|
||||
|
||||
int allowKernelUpdate(char *mess) {
|
||||
int allowKernelUpdate(char *mess, char *functionType) {
|
||||
LOG(logINFO, ("\tVerifying kernel update allowed...\n"));
|
||||
|
||||
#ifdef VIRTUAL
|
||||
@ -265,7 +265,7 @@ int allowKernelUpdate(char *mess) {
|
||||
snprintf(
|
||||
mess, MAX_STR_LENGTH,
|
||||
"Could not update %s. (Could not figure out if Amd flash: %s)\n",
|
||||
messageType, retvals);
|
||||
functionType, retvals);
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
@ -275,7 +275,7 @@ int allowKernelUpdate(char *mess) {
|
||||
snprintf(mess, MAX_STR_LENGTH,
|
||||
"Could not update %s. Kernel version %s is too old to "
|
||||
"update the Amd flash\n",
|
||||
messageType, retvals);
|
||||
functionType, retvals);
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
|
@ -9374,7 +9374,7 @@ void receive_program_via_blackfin(int file_des, enum PROGRAM_INDEX index,
|
||||
LOG(logERROR, (mess));
|
||||
#else
|
||||
// check kernel update is allowed (Non Amd OR AMD + current kernel)
|
||||
ret = allowKernelUpdate(mess);
|
||||
ret = allowKernelUpdate(mess, functionType);
|
||||
if (ret == FAIL) {
|
||||
Server_SendResult(file_des, INT32, NULL, 0);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user