[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAC5umyhUteOFg1Q+rxU01axu_Rt2gadTqi9NxLESiqNyLtHaZA@mail.gmail.com>
Date: Sat, 17 Sep 2022 14:39:27 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: Zhao Gongyi <zhaogongyi@...wei.com>
Cc: linux-doc@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
linux-mm@...ck.org, linux-kselftest@...r.kernel.org,
Jonathan Corbet <corbet@....net>, david@...hat.com,
osalvador@...e.de, shuah@...nel.org
Subject: Re: [PATCH -next v2 1/5] docs: notifier-error-inject: fix non-working
usage of negative values
2022年9月15日(木) 18:01 Zhao Gongyi <zhaogongyi@...wei.com>:
>
> Fault injection uses debugfs in a way that the provided values via
> sysfs are interpreted as u64. Providing negative numbers results in
> an error:
>
> # cd sys/kernel/debug/notifier-error-inject/memory
> # echo -12 > actions/MEM_GOING_ONLINE/error
> -bash: echo: write error: Invalid argument
>
> Update the docs and examples to use "printf %#x <val>" in these cases.
I'd rather fix the notifier-error-inject module than change the user interface.
I'll send a patch, so could you check if that solves the problem.
Powered by blists - more mailing lists