public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] error: Add dedicated error domain for BREDR
@ 2025-07-01 20:34 Luiz Augusto von Dentz
  2025-07-01 21:52 ` [BlueZ,v1] " bluez.test.bot
  2025-07-02 13:00 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-07-01 20:34 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds dedicated error domain org.bluez.Error.BREDR for BREDR bearer
and then use it on the likes of btd_error_profile_unavailable.
---
 doc/org.bluez.Device.rst | 1 +
 src/device.c             | 3 +--
 src/error.c              | 5 ++---
 src/error.h              | 1 +
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/org.bluez.Device.rst b/doc/org.bluez.Device.rst
index 646e2c77ec2d..61c394dd2d0b 100644
--- a/doc/org.bluez.Device.rst
+++ b/doc/org.bluez.Device.rst
@@ -49,6 +49,7 @@ Possible errors:
 :org.bluez.Error.Failed:
 :org.bluez.Error.InProgress:
 :org.bluez.Error.AlreadyConnected:
+:org.bluez.Error.BREDR.ProfileUnavailable:
 
 void Disconnect()
 `````````````````
diff --git a/src/device.c b/src/device.c
index 2c741d3913e4..2892b75e7e25 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2685,8 +2685,7 @@ static DBusMessage *connect_profiles(struct btd_device *dev, uint8_t bdaddr_type
 						BTD_SERVICE_STATE_CONNECTED)) {
 				return dbus_message_new_method_return(msg);
 			} else {
-				return btd_error_not_available_str(msg,
-					ERR_BREDR_CONN_PROFILE_UNAVAILABLE);
+				return btd_error_profile_unavailable(msg);
 			}
 		}
 
diff --git a/src/error.c b/src/error.c
index 41dd90400426..e61baeef7928 100644
--- a/src/error.c
+++ b/src/error.c
@@ -130,10 +130,9 @@ DBusMessage *btd_error_not_ready_str(DBusMessage *msg, const char *str)
 
 DBusMessage *btd_error_profile_unavailable(DBusMessage *msg)
 {
-	return g_dbus_create_error(msg, ERROR_INTERFACE
+	return g_dbus_create_error(msg, ERROR_INTERFACE_BREDR
 					".ProfileUnavailable",
-					"Exhausted the list of BR/EDR "
-					"profiles to connect to");
+					"No more profiles to connect to");
 }
 
 DBusMessage *btd_error_failed(DBusMessage *msg, const char *str)
diff --git a/src/error.h b/src/error.h
index 64297f4376d0..47602d39ba81 100644
--- a/src/error.h
+++ b/src/error.h
@@ -14,6 +14,7 @@
 #include <stdint.h>
 
 #define ERROR_INTERFACE "org.bluez.Error"
+#define ERROR_INTERFACE_BREDR "org.bluez.Error.BREDR"
 
 /* BR/EDR connection failure reasons */
 #define ERR_BREDR_CONN_ALREADY_CONNECTED	"br-connection-already-"\
-- 
2.49.0


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

* RE: [BlueZ,v1] error: Add dedicated error domain for BREDR
  2025-07-01 20:34 [PATCH BlueZ v1] error: Add dedicated error domain for BREDR Luiz Augusto von Dentz
@ 2025-07-01 21:52 ` bluez.test.bot
  2025-07-02 13:00 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-07-01 21:52 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=977912

---Test result---

Test Summary:
CheckPatch                    PENDING   0.31 seconds
GitLint                       PENDING   0.27 seconds
BuildEll                      PASS      20.15 seconds
BluezMake                     PASS      2603.04 seconds
MakeCheck                     PASS      20.39 seconds
MakeDistcheck                 PASS      199.86 seconds
CheckValgrind                 PASS      279.46 seconds
CheckSmatch                   PASS      304.30 seconds
bluezmakeextell               PASS      128.34 seconds
IncrementalBuild              PENDING   0.26 seconds
ScanBuild                     PASS      919.21 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ v1] error: Add dedicated error domain for BREDR
  2025-07-01 20:34 [PATCH BlueZ v1] error: Add dedicated error domain for BREDR Luiz Augusto von Dentz
  2025-07-01 21:52 ` [BlueZ,v1] " bluez.test.bot
@ 2025-07-02 13:00 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-07-02 13:00 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue,  1 Jul 2025 16:34:46 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This adds dedicated error domain org.bluez.Error.BREDR for BREDR bearer
> and then use it on the likes of btd_error_profile_unavailable.
> ---
>  doc/org.bluez.Device.rst | 1 +
>  src/device.c             | 3 +--
>  src/error.c              | 5 ++---
>  src/error.h              | 1 +
>  4 files changed, 5 insertions(+), 5 deletions(-)

Here is the summary with links:
  - [BlueZ,v1] error: Add dedicated error domain for BREDR
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=248a671e5185

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2025-07-02 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-01 20:34 [PATCH BlueZ v1] error: Add dedicated error domain for BREDR Luiz Augusto von Dentz
2025-07-01 21:52 ` [BlueZ,v1] " bluez.test.bot
2025-07-02 13:00 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox