if (ret_dbus < 0) {
_E("Failed to get storage_ext device info"); //LCOV_EXCL_LINE
- return -EIO;
+ return -EIO; //LCOV_EXCL_LINE
}
if (!g_variant_get_safe(reply, "(a(issssssisibii))", &iter)) {
+ //LCOV_EXCL_START Dbus type error
_E("Failed to get params from gvariant.");
g_variant_unref(reply);
return -EIO;
+ //LCOV_EXCL_STOP
}
while (g_variant_iter_loop(iter, "(issssssisibii)",
elem = (storage_ext_device *)malloc(sizeof(storage_ext_device));
if (!elem) {
- _E("malloc() failed"); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START System error
+ _E("malloc() failed");
ret = -ENOMEM;
goto out;
+ //LCOV_EXCL_STOP
}
elem->type = info.type;
if (ret_dbus < 0) {
_E("Failed to get storage_ext device info"); //LCOV_EXCL_LINE
- return -EIO;
+ return -EIO; //LCOV_EXCL_LINE
}
if (!g_variant_get_safe(reply, "(ttttttttttt)",
if (ret_dbus < 0) {
_E("Failed to get storage_ext device info"); //LCOV_EXCL_LINE
- return -EIO;
+ return -EIO; //LCOV_EXCL_LINE
}
if (!g_variant_get_safe(reply, "(ttttttttttt)",
&(buf->f_bfree), &(buf->f_bavail), &(buf->f_files),
&(buf->f_ffree), &(buf->f_favail), &(buf->f_fsid),
&(buf->f_flag), &(buf->f_namemax))) {
+ //LCOV_EXCL_START Dbus type error
_E("Failed to get params from gvariant.");
g_variant_unref(reply);
return -EIO;
+ //LCOV_EXCL_STOP
}
// %lu buf->f_bsize, buf->f_frsize, buf->f_fsid, buf->f_flag, buf->f_namemax
gdbus_free_connection(dbus_handle);
if (ret_dbus < 0) {
+ //LCOV_EXCL_START Dbus error
_E("Failed to get %d level", id);
return -EIO;
+ //LCOV_EXCL_STOP
}
if (!g_variant_get_safe(reply, "(s)", &reply_val)) {
+ //LCOV_EXCL_START Dbus type error
_E("Failed to get params from gvariant.");
g_variant_unref(reply);
return -EIO;
+ //LCOV_EXCL_STOP
}
*level = strdup(reply_val);
g_variant_unref(reply);
if (*level == NULL)
- return -ENOMEM;
+ return -ENOMEM; //LCOV_EXCL_LINE
return 0;
}
if (ret_dbus < 0) {
_E("There is no storage with the storage id (%d)", storage_id); //LCOV_EXCL_LINE
- return -ENODEV;
+ return -ENODEV; //LCOV_EXCL_LINE
}
if (!g_variant_get_safe(reply, "(issssssisibii)",
&info->readonly, &info->mount_point,
&info->state, &info->primary,
&info->flags, &info->storage_id)) {
- _E("No storage with the storage id (%d)", storage_id); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START Dbus error
+ _E("No storage with the storage id (%d)", storage_id);
ret_dbus = -ENODEV;
goto out;
+ //LCOV_EXCL_STOP
}
if (info->storage_id < 0) {
- _E("No storage with the storage id (%d)", storage_id); //LCOV_EXCL_LINE
+ //LCOV_EXCL_START Dbus error
+ _E("No storage with the storage id (%d)", storage_id);
ret_dbus = -ENODEV;
goto out;
+ //LCOV_EXCL_STOP
}
out: