strip debugging fprintfs and dead Device.Powered path

Drop the diagnostic logs added during adapter/scan/connect
debugging — the wire flow is now well-understood, so the noise
isn't worth keeping. Also delete iwd_device_set_powered (and the
adapter_obj/adapter_proxy fields it relied on); manager.set_powered
goes through Iwd_Adapter directly, so the device-side fallback is
unreachable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nemunaire 2026-04-09 11:49:19 +07:00
commit 6bc2975f06
4 changed files with 12 additions and 97 deletions

View file

@ -1,5 +1,4 @@
#include "iwd_dbus.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -41,7 +40,6 @@ _emit_managed(Iwd_Dbus *d, Eldbus_Message_Iter *objects)
Eldbus_Message_Iter *props;
if (!eldbus_message_iter_arguments_get(iface_entry, "sa{sv}", &iface, &props))
continue;
fprintf(stderr, "e_iwd: %s :: %s\n", path, iface);
if (d->cbs.iface_added)
d->cbs.iface_added(d->data, path, iface, props);
}
@ -52,19 +50,9 @@ static void
_on_get_managed(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
{
Iwd_Dbus *d = data;
const char *errname, *errmsg;
if (eldbus_message_error_get(msg, &errname, &errmsg))
{
fprintf(stderr, "e_iwd: GetManagedObjects error: %s: %s\n", errname, errmsg);
return;
}
if (eldbus_message_error_get(msg, NULL, NULL)) return;
Eldbus_Message_Iter *objects;
if (!eldbus_message_arguments_get(msg, "a{oa{sa{sv}}}", &objects))
{
fprintf(stderr, "e_iwd: GetManagedObjects: failed to parse top-level dict\n");
return;
}
fprintf(stderr, "e_iwd: GetManagedObjects reply received, walking objects\n");
if (!eldbus_message_arguments_get(msg, "a{oa{sa{sv}}}", &objects)) return;
_emit_managed(d, objects);
}