Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b3d336d authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: core: Add info logs in node ioctl



Add logs to track if acquire & release hw calls are being
successfully executed.

Change-Id: If10ef45734d5cb0c1cd82b511330df9917e4ef2a
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 9fe7dab7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -657,6 +657,7 @@ int cam_node_handle_ioctl(struct cam_node *node, struct cam_control *cmd)
					"acquire device failed(rc = %d)", rc);
				goto acquire_kfree;
			}
			CAM_INFO(CAM_CORE, "Acquire HW successful");
		}

		if (copy_to_user((void __user *)cmd->handle, acquire_ptr,
@@ -763,6 +764,8 @@ int cam_node_handle_ioctl(struct cam_node *node, struct cam_control *cmd)
					"release device failed(rc = %d)", rc);
		}

		CAM_INFO(CAM_CORE, "Release HW done(rc = %d)", rc);

release_kfree:
		kfree(release_ptr);
		break;