Skip to content

Commit 9066e15

Browse files
Qifu Zhangrafaeljw
authored andcommitted
Documentation: ACPI: EINJ: Fix obsolete example
Since commit 488dac0 ("libfs: fix error cast of negative value in simple_attr_write()"), the EINJ debugfs interface no longer accepts negative values as input. Attempt to do so will result in EINVAL. Fixes: 488dac0 ("libfs: fix error cast of negative value in simple_attr_write()") Signed-off-by: Qifu Zhang <[email protected]> Reviewed-by: Tony Luck <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dd5e555 commit 9066e15

File tree

1 file changed

+1
-1
lines changed
  • Documentation/firmware-guide/acpi/apei

1 file changed

+1
-1
lines changed

Documentation/firmware-guide/acpi/apei/einj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ An error injection example::
168168
0x00000008 Memory Correctable
169169
0x00000010 Memory Uncorrectable non-fatal
170170
# echo 0x12345000 > param1 # Set memory address for injection
171-
# echo $((-1 << 12)) > param2 # Mask 0xfffffffffffff000 - anywhere in this page
171+
# echo 0xfffffffffffff000 > param2 # Mask - anywhere in this page
172172
# echo 0x8 > error_type # Choose correctable memory error
173173
# echo 1 > error_inject # Inject now
174174

0 commit comments

Comments
 (0)