All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rasmus Villemoes <ravi@prevas.dk>
To: Anshul Dalal <anshuld@ti.com>
Cc: <u-boot@lists.denx.de>,
	 Quentin Schulz <quentin.schulz@cherry.de>,
	 Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v3 2/2] cmd/part.c: implement "part name" subcommand
Date: Tue, 11 Nov 2025 09:00:33 +0100	[thread overview]
Message-ID: <87cy5pc82m.fsf@prevas.dk> (raw)
In-Reply-To: <DE5M6LMZV9EI.NS7NVSZR63W9@ti.com> (Anshul Dalal's message of "Tue, 11 Nov 2025 10:55:49 +0530")

On Tue, Nov 11 2025, Anshul Dalal <anshuld@ti.com> wrote:

>>  static int do_part_set(int argc, char *const argv[])
>>  {
>>  	const char *devname, *partstr, *typestr;
>> @@ -273,6 +282,8 @@ static int do_part(struct cmd_tbl *cmdtp, int flag, int argc,
>>  		return do_part_size(argc - 2, argv + 2);
>>  	else if (!strcmp(argv[1], "number"))
>>  		return do_part_number(argc - 2, argv + 2);
>> +	else if (!strcmp(argv[1], "name"))
>> +		return do_part_name(argc - 2, argv + 2);
>>  	else if (!strcmp(argv[1], "types"))
>>  		return do_part_types(argc - 2, argv + 2);
>>  	else if (!strcmp(argv[1], "set"))
>> @@ -305,6 +316,9 @@ U_BOOT_CMD(
>>  	"part number <interface> <dev> <part> <varname>\n"
>>  	"    - set environment variable to the partition number using the partition name\n"
>>  	"      part must be specified as partition name\n"
>> +	"part name <interface> <dev> <part> <varname>\n"
>
> Nit: Shouldn't this be part name <interface> <dev> <part> [varname]
> instead?
>

Yes, probably, I did notice that, but I preferred being consistent with
the existing cases which also do not indicate varname as optional.

Rasmus

  reply	other threads:[~2025-11-11  8:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-10 20:54 [PATCH v3 0/2] 'part name' subcommand and some robustification Rasmus Villemoes
2025-11-10 20:54 ` [PATCH v3 1/2] disk/part.c: ensure strings in struct disk_partition are valid after successful get_info Rasmus Villemoes
2025-11-11  5:18   ` Anshul Dalal
2025-11-11  7:58     ` Rasmus Villemoes
2025-11-10 20:54 ` [PATCH v3 2/2] cmd/part.c: implement "part name" subcommand Rasmus Villemoes
2025-11-11  5:25   ` Anshul Dalal
2025-11-11  8:00     ` Rasmus Villemoes [this message]
2025-11-11 17:27       ` Quentin Schulz
2025-11-11  5:07 ` [PATCH v3 0/2] 'part name' subcommand and some robustification Anshul Dalal
2025-11-18 20:32 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cy5pc82m.fsf@prevas.dk \
    --to=ravi@prevas.dk \
    --cc=anshuld@ti.com \
    --cc=quentin.schulz@cherry.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.