X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Fcarlu%2Fsrc%2Fdebug.c;h=f8d6372c5afa184b39100a9bec55b32112f67152;hb=12cc2cc355d1dce3d50c78e0f680b3cda0c73dfe;hp=5721008cef052c8acdca545f9ee401fd663acfae;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;p=carl9170fw.git diff --git a/tools/carlu/src/debug.c b/tools/carlu/src/debug.c index 5721008..f8d6372 100644 --- a/tools/carlu/src/debug.c +++ b/tools/carlu/src/debug.c @@ -1,9 +1,9 @@ /* - * carl9170user - userspace testing utility for ar9170 devices + * carlu - userspace testing utility for ar9170 devices * * Random assortment of debug stuff * - * Copyright 2009, 2010 Christian Lamparter + * Copyright 2009-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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, " "); }