Commit 0f3ab300 authored by kc8apf's avatar kc8apf
Browse files

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
parent d35a4b00
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment