linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Calvin Yoo <choongbeom@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: How to enable "util_debug" function in att.c
Date: Wed, 10 Oct 2018 13:36:27 +0300	[thread overview]
Message-ID: <CABBYNZ+k2KqhynyXCqWoNMwJXR=r+9UFPpy8A-0UXtUdOde0=A@mail.gmail.com> (raw)
In-Reply-To: <CAO9gXyQNtt7x15sEsNo-2qb2xLOC_8OB_wkti1_d8tvq8fysNQ@mail.gmail.com>

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

      reply	other threads:[~2018-10-10 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABBYNZ+k2KqhynyXCqWoNMwJXR=r+9UFPpy8A-0UXtUdOde0=A@mail.gmail.com' \
    --to=luiz.dentz@gmail.com \
    --cc=choongbeom@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).