Hi Luiz, On Mon, Dec 17, 2012 at 11:45 AM, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > - err = set_mode(adapter, mode); > + err = mgmt_set_powered(adapter->dev_id, powered); > if (err < 0) > return g_dbus_pending_property_error(id, > ERROR_INTERFACE ".Failed", > - strerror(-err)); > + strerror(err)); Looks like you changed the line above by mistake, err is negative and thus need to be made positive to pass to strerror(). Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html