Skip to content
Snippets Groups Projects
Commit c7bd4927 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

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


[ Upstream commit 00574752 ]

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>
Stable-dep-of: d472cf79 ("debugfs: fix error when writing negative value to atomic_t debugfs file")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6865a549
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment