diff options
author | Gowtham Anandha Babu <gowtham.ab@samsung.com> | 2014-11-21 14:19:25 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-11-25 23:50:08 +0200 |
commit | 037ea88d5e260b506307fccb99795dbbcffa3e6a (patch) | |
tree | 83faece161053185bd1e9c11dcbf496de4fdd519 /plugins | |
parent | c9748778ac2932d86e10a89f269766e938c40961 (diff) | |
download | bluez-037ea88d5e260b506307fccb99795dbbcffa3e6a.tar.gz |
plugins/autopair: Provide descriptive error log
Add more description in error logging.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/autopair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/autopair.c b/plugins/autopair.c index d63da93ac..43b0e00e9 100644 --- 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; } |