Be more verbose

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-05-09 15:27:57 +00:00
parent 0cce48e9fd
commit 5c532b2e56
4 changed files with 34 additions and 11 deletions

View File

@@ -60,8 +60,9 @@ gt_show_dev(const char *dev)
{
int fd = ctl_connect(GT_RUNDIR, dev);
if (fd == -1) {
perror(dev);
if (fd < 0) {
if (fd == -1)
perror("show");
return -1;
}