From: Peter Korsgaard <peter@korsgaard.com>
To: Jean Delvare <jdelvare@suse.com>, linux-kernel@vger.kernel.org
Cc: Peter Korsgaard <peter@korsgaard.com>
Subject: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"
Date: Wed, 5 Dec 2018 22:13:51 +0100 [thread overview]
Message-ID: <20181205211351.5309-1-peter@korsgaard.com> (raw)
This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7.
The output of dmi_save_uuid() is exposed to user space as
/sys/devices/virtual/dmi/id/*_uuid, so this breaks backwards compatibility,
E.G. I have systems that include the content of dmi/id/product_uuid as part
of the keyphrase for cryptsetup luksOpen.
As the change was purely cosmetical, revert it to fix such breakage.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
drivers/firmware/dmi_scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 099d83e4e910..2ed51651565f 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -211,9 +211,9 @@ static void __init dmi_save_uuid(const struct dmi_header *dm, int slot,
* says that this is the defacto standard.
*/
if (dmi_ver >= 0x020600)
- sprintf(s, "%pUl", d);
+ sprintf(s, "%pUL", d);
else
- sprintf(s, "%pUb", d);
+ sprintf(s, "%pUB", d);
dmi_ident[slot] = s;
}
--
2.11.0
next reply other threads:[~2018-12-05 21:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 21:13 Peter Korsgaard [this message]
2018-12-05 21:36 ` [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID" Peter Korsgaard
2018-12-06 8:54 ` Jean Delvare
2018-12-06 9:22 ` Peter Korsgaard
2018-12-06 10:28 ` Jean Delvare
2018-12-06 15:46 ` Peter Korsgaard
2018-12-11 12:06 ` Peter Korsgaard
2018-12-11 13:49 ` Jean Delvare
2018-12-11 14:36 ` Peter Korsgaard
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=20181205211351.5309-1-peter@korsgaard.com \
--to=peter@korsgaard.com \
--cc=jdelvare@suse.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox