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