Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C80BC001DB for ; Fri, 4 Aug 2023 15:53:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 890D6862DA; Fri, 4 Aug 2023 17:53:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=thorsis.com header.i=@thorsis.com header.b="QdqeeDGQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78AA6862DA; Fri, 4 Aug 2023 17:53:47 +0200 (CEST) Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9F97D86264 for ; Fri, 4 Aug 2023 17:53:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ada@thorsis.com Received: from adahl by ada.ifak-system.com with local (Exim 4.94.2) (envelope-from ) id 1qRx7D-000pa5-6l; Fri, 04 Aug 2023 17:53:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1691164423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-transfer-encoding:content-transfer-encoding; bh=5chhwRpZpVI0TCKz1+q4W9ogTmUjm83onsTQewANQyo=; b=QdqeeDGQ8jaFjRkZBlKC95L11wRSjkE6YyNMVCrjSY1X9jCexjAInhvZfk5ZfdnMlbNEzs jJ/531SdiH2jMRyaG5pkE2uLUJcpccXrLVwTE1xvxicK9XC0sISJzfCaXbgFiLble4GtcU 2v4fttPMFZp6I7VtwhdSF4IYJSNwLWVBs9m+be05Be8nozl90yI7T17WWRCs4jDrmmxSjm SAHwsf66wb9uzXqYjCI+GwbXlO89fwGvDLfIPcXicfIlGKj3Fp4/v4L4fUZgF1/hLP+Hcg 1MqFq43yV6tvsYVE4lt+i81QYUwDOJDaeg5L3fnYZwWI8MuddsXXBJbWI7aytg== From: Alexander Dahl To: Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH] cmd: cyclic: Remove duplicate command name in help text Date: Fri, 4 Aug 2023 17:53:23 +0200 Message-Id: <20230804155323.198234-1-ada@thorsis.com> Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Function 'cmd_usage()' already prints one command in usage before printing out the help text given to the U_BOOT_CMD_WITH_SUBCMDS macro. Wrong previous output: Usage: cyclic cyclic demo - register cyclic demo function cyclic list - list cyclic functions Signed-off-by: Alexander Dahl --- cmd/cyclic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cyclic.c b/cmd/cyclic.c index 97324d8240..946f1d7818 100644 --- a/cmd/cyclic.c +++ b/cmd/cyclic.c @@ -77,7 +77,7 @@ static int do_cyclic_list(struct cmd_tbl *cmdtp, int flag, int argc, } static char cyclic_help_text[] = - "cyclic demo - register cyclic demo function\n" + "demo - register cyclic demo function\n" "cyclic list - list cyclic functions\n"; U_BOOT_CMD_WITH_SUBCMDS(cyclic, "Cyclic", cyclic_help_text, base-commit: 989892f5805dc205033c4723bc8e024472564d16 -- 2.30.2