aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-07-21 11:10:35 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-09 18:06:44 -0400
commit813d9f5c4b067e74d6e2ac117062ce8efcbfefa4 (patch)
tree643f07c6f57bbe44f11d72dd54517a17e8516eab /attrib/client.c
parent1c9223abccc3b5a275d784dd09aa163d63a01da6 (diff)
downloadbluez-813d9f5c4b067e74d6e2ac117062ce8efcbfefa4.tar.gz
bluez-813d9f5c4b067e74d6e2ac117062ce8efcbfefa4.tar.xz
bluez-813d9f5c4b067e74d6e2ac117062ce8efcbfefa4.zip
Add utility function to convert ATT error code to string
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 1d84db83..b0a063d3 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -149,7 +149,8 @@ static void primary_cb(guint8 status, const guint8 *pdu, guint16 plen,
}
if (status != 0) {
- error("Discover all primary services failed.");
+ error("Discover all primary services failed: %s",
+ att_ecode2str(status));
goto fail;
}