Skip to content

Commit

Permalink
fixup rename _pm() to _pm_handler()
Browse files Browse the repository at this point in the history
  • Loading branch information
benemorius committed Mar 27, 2020
1 parent 287827a commit edc21ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sys/shell/commands/sc_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int cmd_show(char *arg)
return 0;
}

int _pm(int argc, char **argv)
int _pm_handler(int argc, char **argv)
{
if (!strcmp(argv[1], "show")) {
if (argc != 2) {
Expand Down
4 changes: 2 additions & 2 deletions sys/shell/commands/shell_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern int _heap_handler(int argc, char **argv);
#endif

#ifdef MODULE_PM_LAYERED
extern int _pm(int argc, char **argv);
extern int _pm_handler(int argc, char **argv);
#endif

#ifdef MODULE_PS
Expand Down Expand Up @@ -181,7 +181,7 @@ const shell_command_t _shell_command_list[] = {
{"heap", "Prints heap statistics.", _heap_handler},
#endif
#ifdef MODULE_PM_LAYERED
{ "pm", "interact with layered PM subsystem", _pm },
{ "pm", "interact with layered PM subsystem", _pm_handler },
#endif
#ifdef MODULE_PS
{"ps", "Prints information about running threads.", _ps_handler},
Expand Down
4 changes: 2 additions & 2 deletions tests/periph_pm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "periph/rtc.h"
#endif
#include "pm_layered.h"
extern int _pm(int argc, char **argv);
extern int _pm_handler(int argc, char **argv);
#endif
#include "shell.h"

Expand Down Expand Up @@ -158,7 +158,7 @@ int main(void)
* the state of PM blockers so that the user will know which power mode has
* been entered and is presumably responsible for the unresponsive shell.
*/
_pm(2, (char *[]){"pm", "show"});
_pm_handler(2, (char *[]){"pm", "show"});

#else
puts("This application allows you to test the CPU power management.\n"
Expand Down

0 comments on commit edc21ef

Please sign in to comment.