v4l2: log open/close as info

This commit is contained in:
Wim Taymans 2020-12-09 17:24:54 +01:00
parent 4e7be858e4
commit bd4663b3cc

View file

@ -57,7 +57,7 @@ int spa_v4l2_open(struct spa_v4l2_device *dev, const char *path)
return -EIO; return -EIO;
} }
spa_log_debug(dev->log, "v4l2: Playback device is '%s'", path); spa_log_info(dev->log, "v4l2: Playback device is '%s'", path);
dev->fd = open(path, O_RDWR | O_NONBLOCK, 0); dev->fd = open(path, O_RDWR | O_NONBLOCK, 0);
if (dev->fd == -1) { if (dev->fd == -1) {
@ -110,7 +110,7 @@ int spa_v4l2_close(struct spa_v4l2_device *dev)
if (dev->active || dev->have_format) if (dev->active || dev->have_format)
return 0; return 0;
spa_log_debug(dev->log, "v4l2: close"); spa_log_info(dev->log, "v4l2: close");
if (close(dev->fd)) if (close(dev->fd))
spa_log_warn(dev->log, "close: %m"); spa_log_warn(dev->log, "close: %m");