OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c974877
)
plugins/autopair: Provide descriptive error log
author
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Fri, 21 Nov 2014 08:49:25 +0000
(14:19 +0530)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Tue, 25 Nov 2014 21:50:08 +0000
(23:50 +0200)
Add more description in error logging.
plugins/autopair.c
patch
|
blob
|
history
diff --git
a/plugins/autopair.c
b/plugins/autopair.c
index
d63da93
..
43b0e00
100644
(file)
--- a/
plugins/autopair.c
+++ b/
plugins/autopair.c
@@
-172,8
+172,8
@@
static int autopair_init(void)
n = read(fd, &seed, sizeof(seed));
if (n < (ssize_t) sizeof(seed)) {
err = (n == -1) ? -errno : -EIO;
- error("Failed to read %zu bytes from /dev/urandom",
-
sizeof(seed)
);
+ error("Failed to read %zu bytes from /dev/urandom
: %s (%d)
",
+
sizeof(seed), strerror(-err), -err
);
close(fd);
return err;
}