Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw
authorChristian Lamparter <chunkeey@googlemail.com>
Wed, 16 Feb 2011 18:53:08 +0000 (19:53 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 16 Feb 2011 18:53:08 +0000 (19:53 +0100)
tools/carlu/src/debug.c

index 5721008cef052c8acdca545f9ee401fd663acfae..3da9e651d3454cbfd1019965614f5b049dd01685 100644 (file)
@@ -73,7 +73,7 @@ void print_hex_dump_bytes(const enum debug_level_t lvl, const char *pre,
        char str[17] = { 0 };
        const unsigned char *tmp = (void *) buf;
        char *pbuf = line;
-       size_t i;
+       size_t i, j;
 
        for (i = 0; i < len; i++) {
                if (i % 16 == 0) {
@@ -92,7 +92,7 @@ void print_hex_dump_bytes(const enum debug_level_t lvl, const char *pre,
                if ((i % 16)) {
                        str[i % 16] = '\0';
 
-                       for (i = 0; i < (16 - (i % 16)); i++)
+                       for (j = 0; j < (16 - (i % 16)); j++)
                                pbuf += sprintf(pbuf, "   ");
                }