Hi, > -----Original Message----- > From: Gowtham Anandha Babu [mailto:gowtham.ab@xxxxxxxxxxx] > Sent: Friday, November 21, 2014 2:19 PM > To: linux-bluetooth@xxxxxxxxxxxxxxx > Cc: d.kasatkin@xxxxxxxxxxx; bharat.panda@xxxxxxxxxxx; > cpgs@xxxxxxxxxxx; Gowtham Anandha Babu > Subject: [PATCH] plugins/autopair: Provide descriptive error log > > Add more description in error logging. > --- > plugins/autopair.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/plugins/autopair.c b/plugins/autopair.c index d63da93..43b0e00 > 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; > } > -- > 1.9.1 Ping. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html