print error

This commit is contained in:
maliakal_d 2021-11-23 15:45:01 +01:00
parent 74348afcf6
commit ed2e6e4e28
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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;