You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/13 04:18:47 UTC

[nuttx] 03/03: fs/mount: fix logging macro in FS automount

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6c5cb98e7d382b34d540f074aa1502f24576895b
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jan 12 23:30:36 2023 +0200

    fs/mount: fix logging macro in FS automount
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 fs/mount/fs_automount.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/mount/fs_automount.c b/fs/mount/fs_automount.c
index fd6dd81399..0f22f46cc4 100644
--- a/fs/mount/fs_automount.c
+++ b/fs/mount/fs_automount.c
@@ -167,7 +167,7 @@ static void automount_notify(FAR struct automounter_state_s *priv)
   ret = nxmutex_lock(&priv->lock);
   if (ret < 0)
     {
-      ierr("ERROR: nxmutex_lock failed: %d\n", ret);
+      ferr("ERROR: nxmutex_lock failed: %d\n", ret);
       return;
     }
 
@@ -207,7 +207,7 @@ static int automount_open(FAR struct file *filep)
   ret = nxmutex_lock(&priv->lock);
   if (ret < 0)
     {
-      ierr("ERROR: nxmutex_lock failed: %d\n", ret);
+      ferr("ERROR: nxmutex_lock failed: %d\n", ret);
       return ret;
     }
 
@@ -217,7 +217,7 @@ static int automount_open(FAR struct file *filep)
       sizeof(struct automounter_open_s));
   if (opriv == NULL)
     {
-      ierr("ERROR: Failed to allocate open structure\n");
+      ferr("ERROR: Failed to allocate open structure\n");
       ret = -ENOMEM;
       goto errout_with_lock;
     }
@@ -261,7 +261,7 @@ static int automount_close(FAR struct file *filep)
   ret = nxmutex_lock(&priv->lock);
   if (ret < 0)
     {
-      ierr("ERROR: nxmutex_lock failed: %d\n", ret);
+      ferr("ERROR: nxmutex_lock failed: %d\n", ret);
       return ret;
     }
 
@@ -274,7 +274,7 @@ static int automount_close(FAR struct file *filep)
   DEBUGASSERT(curr);
   if (curr == NULL)
     {
-      ierr("ERROR: Failed to find open entry\n");
+      ferr("ERROR: Failed to find open entry\n");
       ret = -ENOENT;
       goto errout_with_lock;
     }
@@ -328,7 +328,7 @@ static int automount_ioctl(FAR struct file *filep, int cmd,
   ret = nxmutex_lock(&priv->lock);
   if (ret < 0)
     {
-      ierr("ERROR: nxmutex_lock failed: %d\n", ret);
+      ferr("ERROR: nxmutex_lock failed: %d\n", ret);
       return ret;
     }
 
@@ -365,7 +365,7 @@ static int automount_ioctl(FAR struct file *filep, int cmd,
         break;
 
       default:
-        ierr("ERROR: Unrecognized command: %d\n", cmd);
+        ferr("ERROR: Unrecognized command: %d\n", cmd);
         ret = -ENOTTY;
         break;
     }