summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-05-15 14:02:33 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-05-15 14:02:33 -0700
commitce7cd9fb0611eb3ddf74707268d82005161ffb99 (patch)
treee2303a9ee5f51a0b0a5266fb332e4fd94dad4fea
parent2fa20fe9fc4a9e986667d35d3cb2b40d89c9ad9b (diff)
downloadbluez-ce7cd9fb0611eb3ddf74707268d82005161ffb99.tar.gz
plugin: Treat -ENOTSUP as -ENOSYS
If plugin .init returns -ENOTSUP treat it as the system doesn't support the driver since that is the error returned by btd_profile_register when experimental is disabled.
-rw-r--r--src/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index dd7b406c8..80990f8c3 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -186,7 +186,7 @@ start:
err = plugin->desc->init();
if (err < 0) {
- if (err == -ENOSYS)
+ if (err == -ENOSYS || err == -ENOTSUP)
warn("System does not support %s plugin",
plugin->desc->name);
else