]> git.sur5r.net Git - openocd/commitdiff
Fix use of wrong format conversion for size_t (%zu instead of %u)
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 22 Apr 2009 07:31:16 +0000 (07:31 +0000)
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 22 Apr 2009 07:31:16 +0000 (07:31 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1502 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/target.c

index ab82389432acbbe73b0f58d100a3ccba9c3cc635..39b603a29bbe44b94044d4e52fe01b0e06bedf49 100644 (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)