This commit is contained in:
2021-09-03 14:38:15 +02:00
parent ad05abed59
commit 37acc9ec33

View File

@ -184,7 +184,7 @@ int writeFPGAProgram(uint64_t fsize, FILE *fd, char *src, char* msg, char* mess)
("%s [fsize:%lu,fd:%p,src:%p\n", msg, (long long unsigned int)fsize, (void *)fd, (void *)src)); ("%s [fsize:%lu,fd:%p,src:%p\n", msg, (long long unsigned int)fsize, (void *)fd, (void *)src));
if (fwrite((void *)src, sizeof(char), fsize, fd) != fsize) { if (fwrite((void *)src, sizeof(char), fsize, fd) != fsize) {
sprintf(mess, "Could not %s (size:%lu)\n", msg, (long long unsigned int)fsize); sprintf(mess, "Could not %s (size:%ld)\n", msg, (long int)fsize);
LOG(logERROR, (mess)); LOG(logERROR, (mess));
return FAIL; return FAIL;
} }