summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2022-08-17 08:44:36 -0700
committerRobert Moore <Robert.Moore@intel.com>2022-08-17 08:44:36 -0700
commit91bef8bea9cd69c33447ba1bfe2c4273994500fd (patch)
treed7c4ef63605dfb848506974519d5e02890c429a8
parentefba032dc5b287e2cf7068c15ac126c1db645724 (diff)
downloadacpica-91bef8bea9cd69c33447ba1bfe2c4273994500fd.tar.gz
Improve warning message for "invalid ACPI name".
Added an underscore instead of an (illegal) *
-rw-r--r--source/components/utilities/utstring.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/components/utilities/utstring.c b/source/components/utilities/utstring.c
index 5af4c4d36..770f30787 100644
--- a/source/components/utilities/utstring.c
+++ b/source/components/utilities/utstring.c
@@ -308,7 +308,7 @@ AcpiUtRepairName (
return;
}
- ACPI_COPY_NAMESEG (&OriginalName, Name);
+ ACPI_COPY_NAMESEG (&OriginalName, &Name[0]);
/* Check each character in the name */
@@ -321,10 +321,10 @@ AcpiUtRepairName (
/*
* Replace a bad character with something printable, yet technically
- * still invalid. This prevents any collisions with existing "good"
+ * "odd". This prevents any collisions with existing "good"
* names in the namespace.
*/
- Name[i] = '*';
+ Name[i] = '_';
FoundBadChar = TRUE;
}
@@ -335,8 +335,8 @@ AcpiUtRepairName (
if (!AcpiGbl_EnableInterpreterSlack)
{
ACPI_WARNING ((AE_INFO,
- "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
- OriginalName, Name));
+ "Invalid character(s) in name (0x%.8X) %p, repaired: [%4.4s]",
+ OriginalName, Name, &Name[0]));
}
else
{