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 A00C0C54EBC for ; Thu, 12 Jan 2023 15:18:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B7C58532C; Thu, 12 Jan 2023 16:18:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="RQSEkHfx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2968D8514E; Thu, 12 Jan 2023 16:18:09 +0100 (CET) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8A517852B6 for ; Thu, 12 Jan 2023 16:18:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82a.google.com with SMTP id a25so9531311qto.10 for ; Thu, 12 Jan 2023 07:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=f7AQ4X23u+lBvGJigiNCqmaD50EFYH3x4OxDI8lkBpA=; b=RQSEkHfx1y2gLHz6YvD12ScKwdIcs8FFdlp0i/qRFC1Oz/gFultIslEH7C4aR29iZl VdQk52tS+XdxQm2F+qY3LJoAjKsI+W1NI0ltlJh+KpOddsWNkiAzuQrxH7ebXdeEmY/Q x65MLGfMSGkJ9qhTzdtpfPaOPFZKTXOzGr5Hg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f7AQ4X23u+lBvGJigiNCqmaD50EFYH3x4OxDI8lkBpA=; b=OvD94ep2qc//UOSNNFmW+6/vl/RmXLAWAezYp0Xr3vEIN4/OiojM5UHQ8sIYr4PHno bCxxHf2W0uFkS3XYsxwalTAezVq/mo4xlm/S0V+m9HD5gjMlwJE8YbnuSGsylL+XUEU/ +USDMv+TGhX6QxU/IH96D5q7girUsVJ+gmxfKqMf9plND9M/ny/NyZFWdX5GQUdezciU QlSqQUZAEURPElzJdTai8m/fCsNpXJ9kVYVPjWUI6aWbv7GCgv12vm0fD49pVQ3n2+P+ 5BjvKoR6WsJkbzW+jYaDDSFTae/igDIbiSS0at83LeZFab6S9wdUl09SroaP9iVxwzh1 a4ow== X-Gm-Message-State: AFqh2krToY+4u6cvfPYPjYm55XRvLiWv0kh+k0MmTQkZnW1W3DyIKoKI Jj2LLMWWOzVlk9S//m1KqKf1BI4DyCWiukGactE= X-Google-Smtp-Source: AMrXdXvYqpLrzJhXgr0piTrJ9AwAPRENYe5Y5fcZRd91B8ITnFgTe8xj00/jyPRfqRZ4Hrr4oAIPuA== X-Received: by 2002:a05:622a:5143:b0:3ab:4221:44e9 with SMTP id ew3-20020a05622a514300b003ab422144e9mr117829851qtb.36.1673536686166; Thu, 12 Jan 2023 07:18:06 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-38c4-8177-7e9d-a94f.res6.spectrum.com. [2603:6081:7b00:6400:38c4:8177:7e9d:a94f]) by smtp.gmail.com with ESMTPSA id g5-20020ac84b65000000b00398ed306034sm9197623qts.81.2023.01.12.07.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 07:18:05 -0800 (PST) Date: Thu, 12 Jan 2023 10:18:04 -0500 From: Tom Rini To: Shenlin Liang Cc: u-boot@lists.denx.de, zhangdongdong@eswincomputing.com, jinyanjiang@eswincomputing.com, zhengyu@eswincomputing.com, zhuwenjun@eswincomputing.com Subject: Re: [PATCH 1/1] cmd: change the return value when argc error Message-ID: <20230112151804.GZ3787616@bill-the-cat> References: <20221209091743.2424-1-liangshenlin@eswincomputing.com> <20221209091743.2424-2-liangshenlin@eswincomputing.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g6yWe5m5QyOVce9h" Content-Disposition: inline In-Reply-To: <20221209091743.2424-2-liangshenlin@eswincomputing.com> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --g6yWe5m5QyOVce9h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 09, 2022 at 05:17:43PM +0800, Shenlin Liang wrote: > When the number of parameters is wrong, the return value should be proces= sed in=20 > the same way as other cmds, return CMD_RET_USAGE so that it can print the= information. >=20 > Signed-off-by: Shenlin Liang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --g6yWe5m5QyOVce9h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPAJKsACgkQFHw5/5Y0 tyzaMAwApKj1/yoOsmBHvShsZuj35BdBkImwvmQk16OCraYdlUKv1MtAIbIiWqZk VW+NZt9+V+xh3szrjeIxAVQOGMHEIXJemp0n7Py1AmpMtKzVRI4GwOwe5Sg052NM axMRAdSzHg1jmFHcuRTPGhcJYwszdEbD6Gw37+fEIa77o/5c7XlZYKHWMTFFt+23 x36gUhnskyQIrDMcrO85NlfzSBWHuZHjW4vwJk2iazokqR+o0apTWTYinXOv8XET xSbdeUuOnbzVHVK9fsYo94+D04jcqv6H/9XFpeYxy5c1XfsqxM6hmDvQpla9lixo EYKp+xmkF8y7e1VBDxm0ApwV8Kw0HANJ1knsugdPlzCd1f4w58bYfPtHNisJOMuB Ai7QP/2Bnue+lncxg2v0+IehWr5ctH3RCkQ8KDnvGkOvKSCk017MPnWGkb8gvihP uFHv9nazWhP1sgfTawkx9JkOcg9TQU/AQSA0a9e/RWnqnCv6VMdogSOZMgjgbJCo dDJAQEI5 =H2Pd -----END PGP SIGNATURE----- --g6yWe5m5QyOVce9h--