On Wed, Sep 26, 2018 at 01:47:25PM -0600, Shuah Khan wrote:
On 09/26/2018 10:29 AM, Jerry Hoemann wrote:
On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote:
Hi Jerry,
The rest looks good to me.
I spoke too soon. I ran your patch on softdog and error messages in unsupported cases could you refinement. Please see below:
Sorry for not catching this earlier.
} int main(int argc, char *argv[]) @@ -135,6 +142,30 @@ int main(int argc, char *argv[]) else printf("WDIOC_SETTIMEOUT errno '%s'\n", strerror(errno)); break;
case 'T':
oneshot = 1;
ret = ioctl(fd, WDIOC_GETTIMEOUT, &flags);
if (!ret)
printf("WDIOC_GETTIMEOUT returns %u seconds.\n", flags);
else
printf("WDIOC_GETTIMEOUT errno '%s'\n", strerror(errno));
Either remove "errno" or change it to "error '%s'"
Oh, I see. I did a cut/paste from prior printf in file which have same issue. I'll fix those while I'm at it.