Fix use of wrong format conversion for size_t (%zu instead of %u)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1502 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
d35a4b005e
commit
0f3ab30087
|
@ -2495,7 +2495,7 @@ static void writeData(FILE *f, const void *data, size_t len)
|
|||
{
|
||||
size_t written = fwrite(data, len, 1, f);
|
||||
if (written != len)
|
||||
LOG_ERROR("failed to write %u bytes: %s", len, strerror(errno));
|
||||
LOG_ERROR("failed to write %zu bytes: %s", len, strerror(errno));
|
||||
}
|
||||
|
||||
static void writeLong(FILE *f, int l)
|
||||
|
|
Loading…
Reference in New Issue