aboutsummaryrefslogtreecommitdiffstats
path: root/demos/PPC-SPC563-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-03 10:51:59 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-03 10:51:59 +0000
commit943389a5584d3df71d176e508fbcdef3ba201c74 (patch)
tree806bbdf25aa0614f862bd56ad18d87db72c8edb3 /demos/PPC-SPC563-GCC
parente526c3a9a53198543c3132d826379c6cf963de76 (diff)
downloadChibiOS-943389a5584d3df71d176e508fbcdef3ba201c74.tar.gz
ChibiOS-943389a5584d3df71d176e508fbcdef3ba201c74.tar.bz2
ChibiOS-943389a5584d3df71d176e508fbcdef3ba201c74.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1702 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/PPC-SPC563-GCC')
-rw-r--r--demos/PPC-SPC563-GCC/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/PPC-SPC563-GCC/main.c b/demos/PPC-SPC563-GCC/main.c
index b846fb405..f2101c130 100644
--- a/demos/PPC-SPC563-GCC/main.c
+++ b/demos/PPC-SPC563-GCC/main.c
@@ -72,8 +72,9 @@ static void cmd_threads(BaseChannel *chp, int argc, char *argv[]) {
shellPrintLine(chp, " addr stack prio refs state time");
tp = chRegFirstThread();
do {
- siprintf(buf, "%8p %8p %4u %4i %9s %u",
- tp, tp->p_ctx.sp, (unsigned int)tp->p_prio, tp->p_refs - 1,
+ siprintf(buf, "%8lx %8lx %4u %4i %9s %u",
+ (uint32_t)tp, (uint32_t)tp->p_ctx.sp,
+ (unsigned int)tp->p_prio, tp->p_refs - 1,
states[tp->p_state], (unsigned int)tp->p_time);
shellPrintLine(chp, buf);
tp = chRegNextThread(tp);