projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd6f67
)
btio: Fix error number
author
Pali Rohár
<pali@kernel.org>
Thu, 23 Apr 2020 23:34:14 +0000
(
01:34
+0200)
committer
Ayush Garg
<ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:48 +0000
(14:30 +0530)
In commit
d20ee8273e61e16c78582344f274254973cdf00f
was unintentionally
negated error number. Fix this mistake.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
btio/btio.c
patch
|
blob
|
history
diff --git
a/btio/btio.c
b/btio/btio.c
index
be3784a
..
2281909
100755
(executable)
--- a/
btio/btio.c
+++ b/
btio/btio.c
@@
-230,7
+230,7
@@
static gboolean connect_cb(GIOChannel *io, GIOCondition cond,
if (err < 0) {
ba2str(&conn->dst, addr);
- g_set_error(&gerr, BT_IO_ERROR, err,
+ g_set_error(&gerr, BT_IO_ERROR,
-
err,
"connect to %s: %s (%d)", addr, strerror(-err), -err);
}
@@
-1718,7
+1718,7
@@
GIOChannel *bt_io_connect(BtIOConnect connect, gpointer user_data,
if (err < 0) {
ba2str(&opts.dst, addr);
- g_set_error(gerr, BT_IO_ERROR, err,
+ g_set_error(gerr, BT_IO_ERROR,
-
err,
"connect to %s: %s (%d)", addr, strerror(-err),
-err);
g_io_channel_unref(io);