From: batt Date: Thu, 12 Aug 2010 15:02:43 +0000 (+0000) Subject: Overhaul kdump(). X-Git-Tag: 2.6.0~216 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=7beb5f7878aa2773badde63fd3dd81d3396e5723;p=bertos.git Overhaul kdump(). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4174 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/kdebug.c b/bertos/drv/kdebug.c index cb04f70b..9c210343 100644 --- a/bertos/drv/kdebug.c +++ b/bertos/drv/kdebug.c @@ -274,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], %z bytes", buf, len); + size_t i=0; while (len--) - kprintf("%02X", *buf++); + { + if ((i % 16) == 0) + kputs("\n"); + kprintf("%02X ", *buf++); + } kputchar('\n'); }