This commit is contained in:
maliakal_d 2021-11-09 14:40:36 +01:00
parent 5143295711
commit f8e2522a11

View File

@ -369,11 +369,7 @@ int verifyChecksumFromFlash(char *mess, char *functionType,
}
LOG(logINFO, ("\tRead %lu bytes to calculate checksum\n", totalBytesRead));
fclose(fp);
int ret = verifyChecksum(mess, functionType, clientChecksum, &c, "flash");
if (ret == OK) {
LOG(logINFO, ("\tChecksum in Flash verified\n"));
}
return ret;
return verifyChecksum(mess, functionType, clientChecksum, &c, "flash");
}
int verifyChecksum(char *mess, char *functionType, char *clientChecksum,
@ -408,6 +404,6 @@ int verifyChecksum(char *mess, char *functionType, char *clientChecksum,
LOG(logERROR, (mess));
return FAIL;
}
LOG(logINFO, ("\tChecksum verified\n"));
LOG(logINFO, ("\tChecksum of %s verified\n", msg));
return OK;
}