Skip to content

Commit 183f0a0

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: Improve warning message for "invalid ACPI name"
ACPICA commit 91bef8bea9cd69c33447ba1bfe2c4273994500fd Added an underscore instead of an (illegal) * Link: acpica/acpica@91bef8be Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ee64b82 commit 183f0a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/acpi/acpica/utstring.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void acpi_ut_repair_name(char *name)
145145
return;
146146
}
147147

148-
ACPI_COPY_NAMESEG(&original_name, name);
148+
ACPI_COPY_NAMESEG(&original_name, &name[0]);
149149

150150
/* Check each character in the name */
151151

@@ -156,10 +156,10 @@ void acpi_ut_repair_name(char *name)
156156

157157
/*
158158
* Replace a bad character with something printable, yet technically
159-
* still invalid. This prevents any collisions with existing "good"
159+
* "odd". This prevents any collisions with existing "good"
160160
* names in the namespace.
161161
*/
162-
name[i] = '*';
162+
name[i] = '_';
163163
found_bad_char = TRUE;
164164
}
165165

@@ -169,8 +169,8 @@ void acpi_ut_repair_name(char *name)
169169

170170
if (!acpi_gbl_enable_interpreter_slack) {
171171
ACPI_WARNING((AE_INFO,
172-
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
173-
original_name, name));
172+
"Invalid character(s) in name (0x%.8X) %p, repaired: [%4.4s]",
173+
original_name, name, &name[0]));
174174
} else {
175175
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
176176
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",

0 commit comments

Comments
 (0)