X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=udevinfo.c;h=901990ede6ca52527ac0e895e429317a0d5b83c1;hb=162c0ee8b95228676a83aaaaf5adf64ba56b0be8;hp=013068541e82eba50ebd62fdd5c479ab8f5b8085;hpb=fc2aa296137017ad748ef2a7fa08bf9de1336272;p=elogind.git diff --git a/udevinfo.c b/udevinfo.c index 013068541..901990ede 100644 --- a/udevinfo.c +++ b/udevinfo.c @@ -142,7 +142,7 @@ static int print_device_chain(const char *path) /* look for the 'dev' file */ attr = sysfs_get_classdev_attr(class_dev, "dev"); - if (attr == NULL) + if (attr != NULL) printf("device '%s' has major:minor %s", class_dev->path, attr->value); /* open sysfs class device directory and print all attributes */