forked from marfrit/libva-v4l2-request-fourier
Move log function to a dedicated file and rename it along the way
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+5
-5
@@ -36,7 +36,7 @@ int media_request_alloc(int media_fd)
|
||||
|
||||
rc = ioctl(media_fd, MEDIA_IOC_REQUEST_ALLOC, &request_alloc);
|
||||
if (rc < 0) {
|
||||
sunxi_cedrus_msg("Unable to allocate media request: %s\n", strerror(errno));
|
||||
sunxi_cedrus_log("Unable to allocate media request: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ int media_request_reinit(int request_fd)
|
||||
|
||||
rc = ioctl(request_fd, MEDIA_REQUEST_IOC_REINIT, NULL);
|
||||
if (rc < 0) {
|
||||
sunxi_cedrus_msg("Unable to reinit media request: %s\n", strerror(errno));
|
||||
sunxi_cedrus_log("Unable to reinit media request: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ int media_request_queue(int request_fd)
|
||||
|
||||
rc = ioctl(request_fd, MEDIA_REQUEST_IOC_QUEUE, NULL);
|
||||
if (rc < 0) {
|
||||
sunxi_cedrus_msg("Unable to queue media request: %s\n", strerror(errno));
|
||||
sunxi_cedrus_log("Unable to queue media request: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -79,10 +79,10 @@ int media_request_wait_completion(int request_fd)
|
||||
|
||||
rc = select(request_fd + 1, NULL, NULL, &except_fds, &tv);
|
||||
if (rc == 0) {
|
||||
sunxi_cedrus_msg("Timeout when waiting for media request\n");
|
||||
sunxi_cedrus_log("Timeout when waiting for media request\n");
|
||||
return -1;
|
||||
} else if (rc < 0) {
|
||||
sunxi_cedrus_msg("Unable to select media request: %s\n", strerror(errno));
|
||||
sunxi_cedrus_log("Unable to select media request: %s\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user