From: jinhyung.jo Date: Sat, 8 Sep 2012 07:34:50 +0000 (+0900) Subject: [Title] Ignore stat function error. X-Git-Tag: TizenStudio_2.0_p2.3~1324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8638f9bdb2202f78212c99e46be51a57ccf8e7cb;p=sdk%2Femulator%2Fqemu.git [Title] Ignore stat function error. [Type] Bugfix [Module] emulator-qemu [Priority] Critical [CQ#] N_SE-9595 [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/tizen/src/hw/maru_camera_linux_pci.c b/tizen/src/hw/maru_camera_linux_pci.c index 786be9b..9afcfdc 100644 --- a/tizen/src/hw/maru_camera_linux_pci.c +++ b/tizen/src/hw/maru_camera_linux_pci.c @@ -365,18 +365,16 @@ int marucam_device_check(void) struct v4l2_capability cap; if (stat(dev_name, &st) < 0) { - ERR("Cannot identify '%s': %s\n", dev_name, strerror(errno)); - return 0; - } - - if (!S_ISCHR(st.st_mode)) { - ERR("%s is no device.\n", dev_name); - return 0; + INFO("Cannot identify '%s': %s\n", dev_name, strerror(errno)); + } else { + if (!S_ISCHR(st.st_mode)) { + INFO("%s is no character device.\n", dev_name); + } } tmp_fd = open(dev_name, O_RDWR | O_NONBLOCK, 0); if (tmp_fd < 0) { - ERR("camera device open failed.(%s)\n", dev_name); + ERR("Camera device open failed.(%s)\n", dev_name); return 0; } if (ioctl(tmp_fd, VIDIOC_QUERYCAP, &cap) < 0) {