chiark / gitweb /
udevadm: info - do not print ATTR{dev}==
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 28 Apr 2008 03:07:47 +0000 (05:07 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 28 Apr 2008 03:07:47 +0000 (05:07 +0200)
udevinfo.c

index a0d6cac..b8e97c4 100644 (file)
@@ -54,6 +54,8 @@ static void print_all_attributes(const char *devpath, const char *key)
 
                        if (strcmp(dent->d_name, "uevent") == 0)
                                continue;
+                       if (strcmp(dent->d_name, "dev") == 0)
+                               continue;
 
                        strlcpy(filename, path, sizeof(filename));
                        strlcat(filename, "/", sizeof(filename));