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
__archive__
kc8apf 2009-04-22 07:31:16 +00:00
parent d35a4b005e
commit 0f3ab30087
1 changed files with 1 additions and 1 deletions

View File

@ -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)