All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Miao-chen Chou <mcchou@chromium.org>
Cc: Bluetooth Kernel Mailing List <linux-bluetooth@vger.kernel.org>,
	Marcel Holtmann <marcel@holtmann.org>,
	Alain Michaud <alainm@chromium.org>,
	Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
	Howard Chung <howardchung@google.com>
Subject: Re: [BlueZ PATCH v1 0/3] Detailed error code
Date: Fri, 18 Jun 2021 11:40:32 -0700	[thread overview]
Message-ID: <CABBYNZJ9pVRcx8eduu0DCWdu+e5F_UXW9Kzb5GgmNEz20ayBxw@mail.gmail.com> (raw)
In-Reply-To: <20210618001559.1284204-1-mcchou@chromium.org>

Hi Miao,

On Thu, Jun 17, 2021 at 8:08 PM Miao-chen Chou <mcchou@chromium.org> wrote:
>
> Hi BlueZ maintainers,
>
> Chromium OS has been working closely with Linux Bluetooth community to
> improve BlueZ stack, and there are increasing needs from applications
> building their features around Bluetooth. One of the major feedback
> from these application is the lack of the detailed failure reasons as
> return for D-Bus method call, and these failure reasons can be used in
> metrics, optimizing retry mechanism, hinting the reproduce scenario to
> improve BlueZ stack. The current org.bluez.Error.* are serving the
> generic errors well. However,g given org.bluez.Error.* errors are used
> across different interface context which does not serve the detailed
> failure reasons well. (See https://github.com/bluez/bluez/issues/131)

I would suggest adding some documentation on the errors e.g.
doc/error-code.txt, so we can document what are the errors and how
they are included on the reply (encoded within the error message as
string using hexadecimal values as in 0x04X, etc.), also we we want to
be crystal clear it would probably be a good idea to inform what
errors codes can appear on each Method like we do for the error
interface.

>
>
> Miao-chen Chou (3):
>   BR/EDR and LE connection failure reasons
>   Include BtdError code in Connect() return
>   Print error code for connect methods
>
>  client/main.c |   3 +-
>  src/device.c  |  52 +++++++++------
>  src/error.c   | 124 ++++++++++++++++++++++++++++++++++++
>  src/error.h   | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 331 insertions(+), 19 deletions(-)
>
> --
> 2.32.0.288.g62a8d224e6-goog
>


-- 
Luiz Augusto von Dentz

      parent reply	other threads:[~2021-06-18 18:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18  0:15 [BlueZ PATCH v1 0/3] Detailed error code Miao-chen Chou
2021-06-18  0:15 ` [BlueZ PATCH v1 1/3] error: BR/EDR and LE connection failure reasons Miao-chen Chou
2021-06-18  1:30   ` Detailed error code bluez.test.bot
2021-06-18 18:18   ` [BlueZ PATCH v1 1/3] error: BR/EDR and LE connection failure reasons Luiz Augusto von Dentz
2021-06-26  1:51     ` Miao-chen Chou
2021-06-18  0:16 ` [BlueZ PATCH v1 2/3] device: Include BtdError code in Connect() return Miao-chen Chou
2021-06-18  0:16 ` [BlueZ PATCH v1 3/3] client: Print error code for connect methods Miao-chen Chou
2021-06-18 18:40 ` 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=CABBYNZJ9pVRcx8eduu0DCWdu+e5F_UXW9Kzb5GgmNEz20ayBxw@mail.gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=alainm@chromium.org \
    --cc=howardchung@google.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.von.dentz@intel.com \
    --cc=marcel@holtmann.org \
    --cc=mcchou@chromium.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 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.