From 1c5b1daa1b5563dfa252b59a3674accbde622082 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakobols@kth.se> Date: Mon, 11 Jun 2018 10:12:41 +0200 Subject: [PATCH] change printf to debug_print --- dongle_infrastructure.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dongle_infrastructure.c b/dongle_infrastructure.c index 8806b8c..7b22ee6 100644 --- a/dongle_infrastructure.c +++ b/dongle_infrastructure.c @@ -631,8 +631,8 @@ int publish_ubus_object(struct ubus_context *ctx, struct ubus_object *obj) ret = ubus_add_object(ctx, obj); if (ret != 0) { - printf("Failed to publish object: %s\n", obj->name); - printf("Failed to publish object error: %s\n", ubus_strerror(ret)); + debug_print("Failed to publish object: %s\n", obj->name); + debug_print("Failed to publish object error: %s\n", ubus_strerror(ret)); goto leave; } @@ -648,8 +648,8 @@ int unpublish_ubus_object(struct ubus_context *ctx, struct ubus_object *obj) ret = ubus_remove_object(ctx, obj); if (ret != 0) { - printf("Failed to unpublish object: %s\n", obj->name); - printf("Failed to unpublish object error: %s\n", ubus_strerror(ret)); + debug_print("Failed to unpublish object: %s\n", obj->name); + debug_print("Failed to unpublish object error: %s\n", ubus_strerror(ret)); goto leave; } -- GitLab