Commit 0364074c authored by Jorge Machado's avatar Jorge Machado

Add verbosity to update width error

parent 9bec167f
...@@ -236,7 +236,7 @@ static int fmc_dio_int_cmd_update_width(struct fmc_dio *dev, ...@@ -236,7 +236,7 @@ static int fmc_dio_int_cmd_update_width(struct fmc_dio *dev,
writel(1 << ch, base + dio.latch_reg); writel(1 << ch, base + dio.latch_reg);
} }
else else
return -1; return -EINVAL;
return 0; return 0;
} }
......
...@@ -190,7 +190,8 @@ static int scan_width(int argc, char **argv) ...@@ -190,7 +190,8 @@ static int scan_width(int argc, char **argv)
} }
if (ioctl(fd, PRIV_MEZZANINE_CMD, (unsigned long) cmd) < 0) { if (ioctl(fd, PRIV_MEZZANINE_CMD, (unsigned long) cmd) < 0) {
fprintf(stderr, "%s: ioctl(PRIV_MEZZANINE_CMD(%s)): %s\n", fprintf(stderr, "%s: ioctl(PRIV_MEZZANINE_CMD(%s)): %s.\n
The new pulse width must be coherent with the previously programmed period\n",
prgname, devname, strerror(errno)); prgname, devname, strerror(errno));
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment