From f4d370a9d687510b6f93b97472aa93b32abc6018 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakobols@kth.se> Date: Mon, 11 Jun 2018 10:45:55 +0200 Subject: [PATCH] remove some garbage prints --- dongle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dongle.c b/dongle.c index a931f06..24717aa 100644 --- a/dongle.c +++ b/dongle.c @@ -395,8 +395,7 @@ int get_devices_from_path(char *input_path) struct stat st; struct device *dev; int rv; - printf("initial input_path %s\n", input_path); - //strncpy(usb_path, "/sys/bus/usb/devices/", PATH_MAX); + dir = opendir(input_path); if (!dir) { perror("opendir"); @@ -409,7 +408,7 @@ int get_devices_from_path(char *input_path) if (strstr(de->d_name, ":") || strstr(de->d_name, "usb")) continue; snprintf(product_path, PATH_MAX, "%s/product", input_path); - printf("stat path %s\n", product_path); + memset(&st, 0, sizeof(st)); rv = stat(product_path, &st); if (rv < 0) { -- GitLab