All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable "util_debug" function in att.c
@ 2018-10-10  9:55 Calvin Yoo
  2018-10-10 10:36 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Calvin Yoo @ 2018-10-10  9:55 UTC (permalink / raw)
  To: linux-bluetooth

Hello,
How to see output log from "util_debug" function in att.c
I searched it for few days but I don't have any clue yet.
How can I see the logs in console?
(Env. - linux and bluez5.41.)

I found enabling daemon log by adding "-d" flag in bluetooth.service
file but it's not what I want.



Thanks,
Calvin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to enable "util_debug" function in att.c
  2018-10-10  9:55 How to enable "util_debug" function in att.c Calvin Yoo
@ 2018-10-10 10:36 ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2018-10-10 10:36 UTC (permalink / raw)
  To: Calvin Yoo; +Cc: linux-bluetooth

Hi Calvin,


On Wed, Oct 10, 2018 at 12:58 PM Calvin Yoo <choongbeom@gmail.com> wrote:
>
> Hello,
> How to see output log from "util_debug" function in att.c
> I searched it for few days but I don't have any clue yet.
> How can I see the logs in console?
> (Env. - linux and bluez5.41.)
>
> I found enabling daemon log by adding "-d" flag in bluetooth.service
> file but it's not what I want.

Usually the code linking with bt_att needs to call bt_att_set_debug:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/shared/att.h#n51

This is done for example by test-gatt:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/unit/test-gatt.c#n661

-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-10 10:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10  9:55 How to enable "util_debug" function in att.c Calvin Yoo
2018-10-10 10:36 ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.