summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-22 15:56:08 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-22 15:56:08 +0200
commit47dee39c2d91e8c89a1bcc9338f023518a66f1ac (patch)
tree740900f498bcf8868645dd27e05e45474c6c0c35 /src/dbus-hci.c
parent903977ddd1278fdbc7ad522906e6a1fb429dca4a (diff)
Fix log messages when there's no agent available
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 9725010a..43856648 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -253,8 +253,10 @@ int hcid_dbus_request_pin(int dev, bdaddr_t *sba, struct hci_conn_info *ci)
if (!agent)
agent = adapter_get_agent(adapter);
- if (!agent)
+ if (!agent) {
+ error("No agent available for PIN request");
return -EPERM;
+ }
if (!device) {
device = adapter_create_device(connection, adapter, addr);
@@ -507,7 +509,7 @@ int hcid_dbus_user_passkey(bdaddr_t *sba, bdaddr_t *dba)
agent = adapter_get_agent(adapter);
if (!agent) {
- error("No agent available for user confirm request");
+ error("No agent available for user passkey request");
return -1;
}