[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190829143814.GA3424@vmlxhi-102.adit-jv.com>
Date: Thu, 29 Aug 2019 16:38:14 +0200
From: Eugeniu Rosca <erosca@...adit-jv.com>
To: "George G. Davis" <george_davis@...tor.com>
CC: Shuah Khan <shuah@...nel.org>,
Jerry Hoemann <jerry.hoemann@....com>,
Colin Ian King <colin.king@...onical.com>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
Eugeniu Rosca <erosca@...adit-jv.com>,
Eugeniu Rosca <roscaeugeniu@...il.com>
Subject: Re: [PATCH] selftests: watchdog: Add optional file argument
Hi George,
On Thu, Aug 29, 2019 at 12:39:25AM -0400, George G. Davis wrote:
> Some systems have multiple watchdog devices where the first device
> registered is assigned to the /dev/watchdog device file.
Confirmed on R-Car H3-Salvator-X:
root@...r-gen3:~# ls -al /dev/watchdog*
crw------- 1 root root 10, 130 Aug 21 09:38 /dev/watchdog
crw------- 1 root root 247, 0 Aug 21 09:38 /dev/watchdog0
[..]
> - fd = open("/dev/watchdog", O_WRONLY);
> + while ((c = getopt_long(argc, argv, sopts, lopts, NULL)) != -1) {
> + if (c == 'f')
> + file = optarg;
> + }
> +
> + fd = open(file, O_WRONLY);
Would it be possible to improve below not so helpful and slightly
misleading printout:
$ ./watchdog-test -d -t 10 -p 5 -e -f /dev/watch
Watchdog device not enabled.
Thanks!
--
Best Regards,
Eugeniu.
Powered by blists - more mailing lists