From 44d130f535409f7179c144d3ab233fd1bad0b1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Mon, 20 Jun 2016 15:26:20 +0200 Subject: [PATCH] sys/ps: Add current stack pointer to ps output (DEVELHELP) --- sys/ps/ps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ps/ps.c b/sys/ps/ps.c index 9b64c6f4e7..7fb95100ab 100644 --- a/sys/ps/ps.c +++ b/sys/ps/ps.c @@ -60,7 +60,7 @@ void ps(void) #endif "%-9sQ | pri " #ifdef DEVELHELP - "| stack ( used) | location " + "| stack ( used) | base | current " #endif #ifdef MODULE_SCHEDSTATISTICS "| runtime | switches" @@ -104,7 +104,7 @@ void ps(void) #endif " | %-8s %.1s | %3i" #ifdef DEVELHELP - " | %5i (%5i) | %p " + " | %5i (%5i) | %10p | %10p " #endif #ifdef MODULE_SCHEDSTATISTICS " | %6.3f%% | %8d" @@ -116,7 +116,7 @@ void ps(void) #endif sname, queued, p->priority #ifdef DEVELHELP - , p->stack_size, stacksz, (void *)p->stack_start + , p->stack_size, stacksz, (void *)p->stack_start, (void *)p->sp #endif #ifdef MODULE_SCHEDSTATISTICS , runtime_ticks, switches