From bb15561db56728b83ee7fe35e534da7577a7729d Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Mon, 22 Aug 2016 17:55:12 -0700 Subject: cleanup: DECLARE_CONSOLE_COMMAND only needs 4 args Since pretty much always, we've declared console commands to take a "longhelp" argument with detailed explanations of what the command does. But since almost as long, we've never actually used that argument for anything - we just silently throw it away in the macro. There's only one command (usbchargemode) that even thinks it defines that argument. We're never going to use this, let's just get rid of it. BUG=none BRANCH=none CQ-DEPEND=CL:*279060 CQ-DEPEND=CL:*279158 CQ-DEPEND=CL:*279037 TEST=make buildall; tested on Cr50 hardware Everything builds. Since we never used this arg anyway, there had better not be any difference in the result. Change-Id: Id3f71a53d02e3dc625cfcc12aa71ecb50e35eb9f Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/374163 Reviewed-by: Myles Watson Reviewed-by: Randall Spangler --- common/panic_output.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'common/panic_output.c') diff --git a/common/panic_output.c b/common/panic_output.c index ec80d6f4e9..bfd7f7a51f 100644 --- a/common/panic_output.c +++ b/common/panic_output.c @@ -199,8 +199,7 @@ DECLARE_CONSOLE_COMMAND(crash, command_crash, " | stack" #endif " | unaligned | watchdog | hang]", - "Crash the system (for testing)", - NULL); + "Crash the system (for testing)"); #endif static int command_panicinfo(int argc, char **argv) @@ -221,8 +220,7 @@ static int command_panicinfo(int argc, char **argv) } DECLARE_CONSOLE_COMMAND(panicinfo, command_panicinfo, NULL, - "Print info from a previous panic", - NULL); + "Print info from a previous panic"); /*****************************************************************************/ /* Host commands */ -- cgit v1.2.1