From dfc871614f302459bf0e5fc0ba8c429eb4b060ea Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Sat, 18 May 2024 20:12:58 +0200 Subject: [PATCH] WIP: debugging ubus call add_dynamic_device --- device.c | 5 ++++- ubus.c | 2 ++ vlandev.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/device.c b/device.c index 322e009..a501c5b 100644 --- a/device.c +++ b/device.c @@ -1304,7 +1304,10 @@ device_create(const char *name, struct device_type *type, dev->config_pending = false; } - device_check_state(dev); + int checkret = device_check_state(dev); + printf("%s\n", __func__); + printf("device_check_state return %d\n", checkret); + return dev; } diff --git a/ubus.c b/ubus.c index 5cdc116..ddffa48 100644 --- a/ubus.c +++ b/ubus.c @@ -180,6 +180,8 @@ netifd_add_dynamic_device( struct ubus_request_data */*req*/, const char */*method*/, struct blob_attr *msg ) { + printf("%s\n", __func__); + struct blob_attr *tb[__DI_DEV_MAX]; struct device *device; struct device_type *type; diff --git a/vlandev.c b/vlandev.c index 4d6e76a..19ad0bd 100644 --- a/vlandev.c +++ b/vlandev.c @@ -384,6 +384,8 @@ static struct device * vlandev_create(const char *name, struct device_type *devtype, struct blob_attr *attr) { + printf("%s\n", __func__); + struct vlandev_device *mvdev; struct device *dev = NULL;