mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-27 06:04:32 +08:00
android/bluetooth: Log error for any non-success code
Returning non-SUCCESS code in command reply is considered error and that includes DONE status.
This commit is contained in:
parent
86905a8968
commit
c31615b82b
@ -2178,7 +2178,7 @@ static void handle_get_adapter_prop_cmd(const void *buf, uint16_t len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE)
|
if (status != HAL_STATUS_SUCCESS)
|
||||||
error("Failed to get adapter property (type %u status %u)",
|
error("Failed to get adapter property (type %u status %u)",
|
||||||
cmd->type, status);
|
cmd->type, status);
|
||||||
|
|
||||||
@ -2329,7 +2329,7 @@ static void handle_set_adapter_prop_cmd(const void *buf, uint16_t len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE)
|
if (status != HAL_STATUS_SUCCESS)
|
||||||
error("Failed to set adapter property (type %u status %u)",
|
error("Failed to set adapter property (type %u status %u)",
|
||||||
cmd->type, status);
|
cmd->type, status);
|
||||||
|
|
||||||
@ -2805,7 +2805,7 @@ static void handle_get_remote_device_prop_cmd(const void *buf, uint16_t len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE)
|
if (status != HAL_STATUS_SUCCESS)
|
||||||
error("Failed to get device property (type %u status %u)",
|
error("Failed to get device property (type %u status %u)",
|
||||||
cmd->type, status);
|
cmd->type, status);
|
||||||
|
|
||||||
@ -2873,7 +2873,7 @@ static void handle_set_remote_device_prop_cmd(const void *buf, uint16_t len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE)
|
if (status != HAL_STATUS_SUCCESS)
|
||||||
error("Failed to set device property (type %u status %u)",
|
error("Failed to set device property (type %u status %u)",
|
||||||
cmd->type, status);
|
cmd->type, status);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user