Return to imgupd.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedtools / src |
version 1.4.2.1, 2014/02/05 23:09:42 | version 1.6, 2014/02/05 23:31:55 |
---|---|
Line 123 FillStore(int img, int fd) | Line 123 FillStore(int img, int fd) |
if (wlen == -1) { | if (wlen == -1) { |
ESYSERR(0); | ESYSERR(0); |
return -1; | return -1; |
} else if (!wlen || wlen != rlen) { | } else if (wlen && wlen != rlen) { |
EERROR(EIO, "Readed %d bytes are not equal to written %d bytes\n", | EERROR(EIO, "Readed %d bytes are not equal to written %d bytes\n", |
rlen, wlen); | rlen, wlen); |
} else | } else |