From 8cb24a2964c882e77c39da3ee636ded2e425f1d6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 18 Dec 2021 14:16:32 +0800 Subject: [PATCH] eventfd: Fix the typo error Signed-off-by: Xiang Xiao --- fs/vfs/fs_eventfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/vfs/fs_eventfd.c b/fs/vfs/fs_eventfd.c index 38fce3d289..ed924d284b 100644 --- a/fs/vfs/fs_eventfd.c +++ b/fs/vfs/fs_eventfd.c @@ -41,7 +41,7 @@ ****************************************************************************/ #ifndef CONFIG_EVENT_FD_VFS_PATH -#define CONFIG_EVENT_FD_VFS_PATH "/dev" +#define CONFIG_EVENT_FD_VFS_PATH "/var/event" #endif #ifndef CONFIG_EVENT_FD_NPOLLWAITERS @@ -226,9 +226,9 @@ static int eventfd_do_close(FAR struct file *filep) FAR struct inode *inode = filep->f_inode; FAR struct eventfd_priv_s *priv = inode->i_private; - /* devpath: EVENT_FD_VFS_PATH + /efd (4) + %d (3) + null char (1) */ + /* devpath: EVENT_FD_VFS_PATH + /efd (4) + %d (10) + null char (1) */ - char devpath[sizeof(CONFIG_EVENT_FD_VFS_PATH) + 4 + 3 + 1]; + char devpath[sizeof(CONFIG_EVENT_FD_VFS_PATH) + 4 + 10 + 1]; /* Get exclusive access to the device structures */