diff options
Diffstat (limited to 'v4l2-apps')
-rw-r--r-- | v4l2-apps/util/v4l2-sysfs-path.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l2-apps/util/v4l2-sysfs-path.c b/v4l2-apps/util/v4l2-sysfs-path.c index 2a6ab0cfc..4f0817017 100644 --- a/v4l2-apps/util/v4l2-sysfs-path.c +++ b/v4l2-apps/util/v4l2-sysfs-path.c @@ -245,13 +245,14 @@ void get_subdevs(char *path) char *s = strchr(entry->d_name, ':'); if (s) { printf("\t%s", entry->d_name); - if (!get_dev(entry->d_name, &major, &minor, extra)) + if (!get_dev(entry->d_name, &major, &minor, extra)) { if (*extra) printf(":%s (dev %d,%d)", extra, major, minor); else printf(" (dev %d,%d)", major, minor); + } printf("\n"); } } |