diff --git a/sys/include/ps.h b/sys/include/ps.h index c19fd49ef23e39326bb775d566da724c41b5addb..eff0916dc9e756778c277b282dc4ccb7e4173234 100644 --- a/sys/include/ps.h +++ b/sys/include/ps.h @@ -17,6 +17,7 @@ * @brief List information about all active threads * * @author Kaspar Schleiser <kaspar@schleiser.de> + * @author Oliver Hahm <oliver.hahm@inria.fr> */ #ifndef __PS_H @@ -26,8 +27,10 @@ extern "C" { #endif -void thread_print_all(void); -int _ps_handler(int argc, char **argv); +/** + * @brief Print information to all active threads to stdout. + */ +void ps(void); #ifdef __cplusplus } diff --git a/sys/ps/ps.c b/sys/ps/ps.c index 150ddf1822b4258e088aa935560e3cf090b758f3..c2a0aa67aa93e087e17f1a55c0fa691188ff2a9a 100644 --- a/sys/ps/ps.c +++ b/sys/ps/ps.c @@ -38,7 +38,7 @@ const char *state_names[] = { /** * @brief Prints a list of running threads including stack usage to stdout. */ -void thread_print_all(void) +void ps(void) { const char queued_name[] = {'_', 'Q'}; #ifdef DEVELHELP diff --git a/sys/shell/commands/sc_ps.c b/sys/shell/commands/sc_ps.c index fa67a9419e7ccad83cd433990c335c9cd3a34e3d..7b311305166cad281844dfe6200b9e92c1635663 100644 --- a/sys/shell/commands/sc_ps.c +++ b/sys/shell/commands/sc_ps.c @@ -25,7 +25,7 @@ int _ps_handler(int argc, char **argv) (void) argc; (void) argv; - thread_print_all(); + ps(); return 0; }