--- embedtools/src/ub_env.c 2014/02/05 15:44:06 1.2 +++ embedtools/src/ub_env.c 2017/06/28 15:19:32 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ub_env.c,v 1.2 2014/02/05 15:44:06 misho Exp $ + * $Id: ub_env.c,v 1.3 2017/06/28 15:19:32 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -97,7 +97,7 @@ ub_flash_io(const char *csSec, int mode) VERB(5) printf("Write CRC32 0x%x\n", env->env_crc); rlen = write(f, env, siz); if (rlen != siz) - printf("Error:: written %d bytes != %d\n", rlen, siz); + printf("Error:: written %d bytes != %zd\n", rlen, siz); else VERB(3) printf("Written %d bytes\n", rlen); lseek(f, 0, SEEK_SET); @@ -105,7 +105,7 @@ ub_flash_io(const char *csSec, int mode) rlen = read(f, env, siz); if (rlen != siz) - printf("Error:: readed %d bytes != %d\n", rlen, siz); + printf("Error:: readed %d bytes != %zd\n", rlen, siz); else VERB(3) printf("Readed %d bytes\n", rlen);