From d13694fec70136b24f1a31999d25810956296263 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakobols@kth.se> Date: Mon, 11 Jun 2018 10:14:31 +0200 Subject: [PATCH] remove some garbage printouts from dongle.c --- dongle.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dongle.c b/dongle.c index 3a3f49c..cee2318 100644 --- a/dongle.c +++ b/dongle.c @@ -651,13 +651,9 @@ int alert(struct ubus_context *ctx, struct ubus_object *obj, usb_path = (char *)blobmsg_data(tb[USB_PATH]); /* FIX THROUGH BASH SCRIPT INSTEAD... */ - if (strstr(usb_path, ":")) { - printf("contained :\n"); + if (strstr(usb_path, ":")) goto fail; - } - printf("did not contain :\n"); - printf("%s\n", usb_path); get_devices_from_path(usb_path); return 0; @@ -689,7 +685,6 @@ int update(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg) { - printf("lets update!\n"); get_devices(); tag_missing_devices(); -- GitLab