[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YkzDoBUAhydtvnR0@casper.infradead.org>
Date: Tue, 5 Apr 2022 23:33:04 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Sidhartha Kumar <sidhartha.kumar@...cle.com>
Cc: shuah@...nel.org, akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] selftest/vm clarify error statement in gup_test
On Tue, Apr 05, 2022 at 09:48:09PM +0000, Sidhartha Kumar wrote:
> - perror("open");
> - exit(1);
> + switch (errno) {
> + case EACCES:
> + if (getuid())
> + printf("Please run this test as root\n");
Shouldn't all these be fprintf(stderr, ...); ?
Powered by blists - more mailing lists