Skip to content
Commit 00574752 authored by Wolfram Sang's avatar Wolfram Sang Committed by Jonathan Corbet
Browse files

docs: fault-injection: fix non-working usage of negative values



Fault injection uses debugfs in a way that the provided values via sysfs
are interpreted as u64. Providing negative numbers results in an error:

/sys/kernel/debug/fail_function# echo -1 > times
sh: write error: Invalid argument

Update the docs and examples to use "printf %#x <val>" in these cases.
For "retval", reword the paragraph a little and fix a typo.

Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20210603125841.27436-1-wsa+renesas@sang-engineering.com


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 91a1265c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment