projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
kdebug.c
diff --git
a/bertos/drv/kdebug.c
b/bertos/drv/kdebug.c
index 7e5eaaa7befabfc2ccf11db90b4f7eccc752e392..2125e2a14a2d66ab1880d35775b7f5ccaf037304 100644
(file)
--- a/
bertos/drv/kdebug.c
+++ b/
bertos/drv/kdebug.c
@@
-32,7
+32,6
@@
*
* \brief General pourpose debug support for embedded systems (implementation).
*
*
* \brief General pourpose debug support for embedded systems (implementation).
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Stefano Fedrigo <aleph@develer.com>
*/
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Stefano Fedrigo <aleph@develer.com>
*/
@@
-275,8
+274,14
@@
void kdump(const void *_buf, size_t len)
{
const unsigned char *buf = (const unsigned char *)_buf;
{
const unsigned char *buf = (const unsigned char *)_buf;
+ kprintf("Dumping buffer at addr [%p], %zu bytes", buf, len);
+ size_t i=0;
while (len--)
while (len--)
- kprintf("%02X", *buf++);
+ {
+ if ((i++ % 16) == 0)
+ kputs("\n");
+ kprintf("%02X ", *buf++);
+ }
kputchar('\n');
}
kputchar('\n');
}