diff options
author | Daniel Wagner <wagi@monom.org> | 2020-10-23 09:44:46 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2020-10-23 09:44:46 +0200 |
commit | 8d0147d7578307ff25b0823cfdfc366c7e9eaafb (patch) | |
tree | 85906dac80ea3fa16d49cc1de4176e139b5a464c /plugins/bluetooth.c | |
parent | ac3a4c16e9e173d3108f10b358047a0c369e1fb6 (diff) | |
download | connman-8d0147d7578307ff25b0823cfdfc366c7e9eaafb.tar.gz |
bluetooth: Move DBG statement after initial checks
gcc complains with format-overflow for the DBG statement for the
bridge argument. Let's move the DBG after the initial checks to avoid
the complain and also make the output more helpful. If we see it in
the log, the bridge has been created.
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index f759a902..53361034 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -717,8 +717,6 @@ static bool tethering_create(const char *path, const char *method; bool result; - DBG("path %s bridge %s", path, bridge); - if (!bridge) { g_free(tethering); return false; @@ -730,6 +728,8 @@ static bool tethering_create(const char *path, return false; } + DBG("path %s bridge %s", path, bridge); + tethering->technology = technology; tethering->bridge = g_strdup(bridge); tethering->enable = enabled; |