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 2022/02/25 14:49:32 UTC

[incubator-nuttx] 02/02: drivers/timers: Fix domain of log messages

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/incubator-nuttx.git

commit 1a1409cbc3cbaf207dae18d60493cc7f86c64cd5
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Feb 24 18:34:31 2022 -0300

    drivers/timers: Fix domain of log messages
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 drivers/timers/oneshot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/timers/oneshot.c b/drivers/timers/oneshot.c
index c18f453..0bdb5ac 100644
--- a/drivers/timers/oneshot.c
+++ b/drivers/timers/oneshot.c
@@ -331,7 +331,7 @@ int oneshot_register(FAR const char *devname,
   FAR struct oneshot_dev_s *priv;
   int ret;
 
-  sninfo("devname=%s lower=%p\n", devname, lower);
+  tmrinfo("devname=%s lower=%p\n", devname, lower);
   DEBUGASSERT(devname != NULL && lower != NULL);
 
   /* Allocate a new oneshot timer driver instance */
@@ -341,7 +341,7 @@ int oneshot_register(FAR const char *devname,
 
   if (!priv)
     {
-      snerr("ERROR: Failed to allocate device structure\n");
+      tmrerr("ERROR: Failed to allocate device structure\n");
       return -ENOMEM;
     }
 
@@ -355,7 +355,7 @@ int oneshot_register(FAR const char *devname,
   ret = register_driver(devname, &g_oneshot_ops, 0666, priv);
   if (ret < 0)
     {
-      snerr("ERROR: register_driver failed: %d\n", ret);
+      tmrerr("ERROR: register_driver failed: %d\n", ret);
       nxsem_destroy(&priv->od_exclsem);
       kmm_free(priv);
     }