From: Ed Swarthout Date: Wed, 8 Oct 2008 23:38:01 -0500 Subject: [U-Boot] [PATCH] pixis do not print long help if not configured In-Reply-To: <1223527082-17061-2-git-send-email-Ed.Swarthout@freescale.com> References: <1223527082-17061-1-git-send-email-Ed.Swarthout@freescale.com> <1223527082-17061-2-git-send-email-Ed.Swarthout@freescale.com> Message-ID: <1223527082-17061-3-git-send-email-Ed.Swarthout@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Ed Swarthout --- board/freescale/common/pixis.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c index b5a0e84..8192bb3 100644 --- a/board/freescale/common/pixis.c +++ b/board/freescale/common/pixis.c @@ -453,7 +453,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) */ if ((p_cf && !(p_cf_sysclk && p_cf_corepll && p_cf_mpxpll)) || unknown_param) { +#ifdef CFG_LONGHELP puts(cmdtp->help); +#endif return 1; } @@ -483,7 +485,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (!(set_px_sysclk(sysclk) && set_px_corepll(corepll) && set_px_mpxpll(mpxpll))) { +#ifdef CFG_LONGHELP puts(cmdtp->help); +#endif return 1; } read_from_px_regs(1); -- 1.5.6.5