drivers/bch: fix linking error
authorEunBong Song <eunb.song@samsung.com>
Tue, 16 May 2017 11:28:42 +0000 (20:28 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 23 May 2017 12:40:04 +0000 (21:40 +0900)
This patch fixes a linking error of bchdev_unregister.c.
Change _err to fdbg.

Change-Id: I7643bada69bf8dba80ec3bc441ca4c9933e12e6d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/drivers/bch/bchdev_unregister.c

index 420c560..8abb2ad 100644 (file)
@@ -97,7 +97,7 @@ int bchdev_unregister(FAR const char *chardev)
        /* Open the character driver associated with chardev */
        fd = open(chardev, O_RDONLY);
        if (fd < 0) {
-               _err("ERROR: Failed to open %s: %d\n", chardev, errno);
+               fdbg("ERROR: Failed to open %s: %d\n", chardev, errno);
                return -errno;
        }
 
@@ -109,7 +109,7 @@ int bchdev_unregister(FAR const char *chardev)
        (void)close(fd);
 
        if (ret < 0) {
-               _err("ERROR: ioctl failed: %d\n", errno);
+               fdbg("ERROR: ioctl failed: %d\n", errno);
                return -errno;
        }