* [U-Boot] [PATCH v1] gpt: Fix uuid string format
@ 2017-02-27 14:11 Andy Shevchenko
2017-03-03 4:52 ` Simon Glass
2017-03-18 0:16 ` [U-Boot] [U-Boot,v1] " Tom Rini
0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2017-02-27 14:11 UTC (permalink / raw)
To: u-boot
From: Vincent Tinelli <vincent.tinelli@intel.com>
Change GPT UUID string format from UUID to GUID per specification.
Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
---
cmd/gpt.c | 2 +-
disk/part_efi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/gpt.c b/cmd/gpt.c
index 196f506335..3e98821868 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -54,7 +54,7 @@ static int extract_env(const char *str, char **env)
if (e == NULL) {
#ifdef CONFIG_RANDOM_UUID
debug("%s unset. ", str);
- gen_rand_uuid_str(uuid_str, UUID_STR_FORMAT_STD);
+ gen_rand_uuid_str(uuid_str, UUID_STR_FORMAT_GUID);
setenv(s, uuid_str);
e = getenv(s);
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 893cbbdbda..db0c890d5b 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -463,7 +463,7 @@ int gpt_fill_pte(gpt_header *gpt_h, gpt_entry *gpt_e,
str_uuid = partitions[i].uuid;
bin_uuid = gpt_e[i].unique_partition_guid.b;
- if (uuid_str_to_bin(str_uuid, bin_uuid, UUID_STR_FORMAT_STD)) {
+ if (uuid_str_to_bin(str_uuid, bin_uuid, UUID_STR_FORMAT_GUID)) {
printf("Partition no. %d: invalid guid: %s\n",
i, str_uuid);
return -1;
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v1] gpt: Fix uuid string format
2017-02-27 14:11 [U-Boot] [PATCH v1] gpt: Fix uuid string format Andy Shevchenko
@ 2017-03-03 4:52 ` Simon Glass
2017-03-03 15:18 ` Andy Shevchenko
2017-03-18 0:16 ` [U-Boot] [U-Boot,v1] " Tom Rini
1 sibling, 1 reply; 5+ messages in thread
From: Simon Glass @ 2017-03-03 4:52 UTC (permalink / raw)
To: u-boot
Hi Andy,
On 27 February 2017 at 07:11, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> From: Vincent Tinelli <vincent.tinelli@intel.com>
>
> Change GPT UUID string format from UUID to GUID per specification.
>
> Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
> ---
> cmd/gpt.c | 2 +-
> disk/part_efi.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
How about also a patch to add comments to that enum in uuid.h?
- Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v1] gpt: Fix uuid string format
2017-03-03 4:52 ` Simon Glass
@ 2017-03-03 15:18 ` Andy Shevchenko
2017-03-08 21:01 ` Simon Glass
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2017-03-03 15:18 UTC (permalink / raw)
To: u-boot
On Fri, Mar 3, 2017 at 6:52 AM, Simon Glass <sjg@chromium.org> wrote:
> Hi Andy,
>
> On 27 February 2017 at 07:11, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>> From: Vincent Tinelli <vincent.tinelli@intel.com>
>>
>> Change GPT UUID string format from UUID to GUID per specification.
>>
>> Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
>> ---
>> cmd/gpt.c | 2 +-
>> disk/part_efi.c | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> How about also a patch to add comments to that enum in uuid.h?
I hope it's not a condition for your tag? Otherwise we might do this
later at some point.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v1] gpt: Fix uuid string format
2017-03-03 15:18 ` Andy Shevchenko
@ 2017-03-08 21:01 ` Simon Glass
0 siblings, 0 replies; 5+ messages in thread
From: Simon Glass @ 2017-03-08 21:01 UTC (permalink / raw)
To: u-boot
Hi Andy,
On 3 March 2017 at 08:18, Andy Shevchenko <andy.shevchenko@gmail.com> wrote:
> On Fri, Mar 3, 2017 at 6:52 AM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Andy,
>>
>> On 27 February 2017 at 07:11, Andy Shevchenko
>> <andriy.shevchenko@linux.intel.com> wrote:
>>> From: Vincent Tinelli <vincent.tinelli@intel.com>
>>>
>>> Change GPT UUID string format from UUID to GUID per specification.
>>>
>>> Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
>>> ---
>>> cmd/gpt.c | 2 +-
>>> disk/part_efi.c | 2 +-
>>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>
>> How about also a patch to add comments to that enum in uuid.h?
>
> I hope it's not a condition for your tag? Otherwise we might do this
> later at some point.
No, it's a suggestion. I normally use something 'but please ...' if I
think something needs to be done.
However it does seem confusing, as this bug suggests.
Regards,
Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-Boot,v1] gpt: Fix uuid string format
2017-02-27 14:11 [U-Boot] [PATCH v1] gpt: Fix uuid string format Andy Shevchenko
2017-03-03 4:52 ` Simon Glass
@ 2017-03-18 0:16 ` Tom Rini
1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2017-03-18 0:16 UTC (permalink / raw)
To: u-boot
On Mon, Feb 27, 2017 at 04:11:15PM +0200, Andy Shevchenko wrote:
> From: Vincent Tinelli <vincent.tinelli@intel.com>
>
> Change GPT UUID string format from UUID to GUID per specification.
>
> Signed-off-by: Vincent Tinelli <vincent.tinelli@intel.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170317/ed2db21a/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-18 0:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 14:11 [U-Boot] [PATCH v1] gpt: Fix uuid string format Andy Shevchenko
2017-03-03 4:52 ` Simon Glass
2017-03-03 15:18 ` Andy Shevchenko
2017-03-08 21:01 ` Simon Glass
2017-03-18 0:16 ` [U-Boot] [U-Boot,v1] " Tom Rini
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.