X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fkdebug.c;h=2125e2a14a2d66ab1880d35775b7f5ccaf037304;hb=2053cc3e6aa26c20a8511ad7148dd704b8e0891e;hp=7e5eaaa7befabfc2ccf11db90b4f7eccc752e392;hpb=e6339d49f97766bd1825d6f07ec44ec864d5ebfe;p=bertos.git diff --git a/bertos/drv/kdebug.c b/bertos/drv/kdebug.c index 7e5eaaa7..2125e2a1 100644 --- a/bertos/drv/kdebug.c +++ b/bertos/drv/kdebug.c @@ -32,7 +32,6 @@ * * \brief General pourpose debug support for embedded systems (implementation). * - * \version $Id$ * \author Bernie Innocenti * \author Stefano Fedrigo */ @@ -275,8 +274,14 @@ void kdump(const void *_buf, size_t len) { const unsigned char *buf = (const unsigned char *)_buf; + kprintf("Dumping buffer at addr [%p], %zu bytes", buf, len); + size_t i=0; while (len--) - kprintf("%02X", *buf++); + { + if ((i++ % 16) == 0) + kputs("\n"); + kprintf("%02X ", *buf++); + } kputchar('\n'); }