retv_if(device->isadded, UA_ERROR_INVALID_PARAMETER);
- if (os < UA_OS_TYPE_NOT_DEFINE || os > UA_OS_TYPE_IOS) {
+ if (os > UA_OS_TYPE_IOS) {
/* LCOV_EXCL_START */
UA_ERR("Invalid os type");
return UA_ERROR_INVALID_PARAMETER;
static void __user_absence_detected_cb(int result, ua_monitor_h monitor,
ua_user_h user_handle, void *user_data)
{
+ int ret;
char *account = NULL;
char *pbuf = uat_get_time();
msg("\n[%s]", pbuf);
free(pbuf);
- ua_user_get_account(user_handle, &account);
+ ret = ua_user_get_account(user_handle, &account);
+ if (UA_ERROR_NONE != ret) {
+ msg(" - ua_user_get_account() ret: [0x%X] [%s]",
+ ret, uat_get_error_str(ret));
+ }
msgp("[%s] ABSENCE detected [%s]", account, uat_get_error_str(result));
if (account) {