return Status::ERROR;
int mode;
- int ret = pkgmgr_client_usr_get_pkg_restriction_mode(
- pc, nullptr, &mode, context_->uid.get());
+ int ret = pkgmgr_client_usr_get_restriction_mode(
+ pc, &mode, context_->uid.get());
if (ret != PKGMGR_R_OK) {
LOG(ERROR) << "Failed to get restriction mode bit";
pkgmgr_client_free(pc);
ret = pkgmgr_client_usr_get_pkg_restriction_mode(
pc, context_->pkgid.get().c_str(), &mode, context_->uid.get());
if (ret != PKGMGR_R_OK) {
- LOG(ERROR) << "Failed to get restriction mode bit";
+ LOG(ERROR) << "Failed to get pkg(" << context_->pkgid.get()
+ << ") restriction mode bit";
pkgmgr_client_free(pc);
return Status::ERROR;
}