eventfd: Fix the typo error

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-12-18 14:16:32 +08:00 committed by Xiang Xiao
parent f9c1117c88
commit 8cb24a2964

View File

@ -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 */