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

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


The following commit(s) were added to refs/heads/master by this push:
     new 34840bbc558 net/arp: remove the ENOMEM_STR, change to const str
34840bbc558 is described below

commit 34840bbc5582f6f942e67abba33de1e46c6a0c17
Author: buxiasen <[email protected]>
AuthorDate: Mon Jun 30 20:12:43 2025 +0800

    net/arp: remove the ENOMEM_STR, change to const str
    
    Reduce the use of Exxx_STR directly, we may remove it and use strerror
    
    Signed-off-by: buxiasen <[email protected]>
---
 net/arp/arp_send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/arp/arp_send.c b/net/arp/arp_send.c
index 01c5e5bb80b..1ca996e9669 100644
--- a/net/arp/arp_send.c
+++ b/net/arp/arp_send.c
@@ -470,7 +470,7 @@ int arp_send_async(in_addr_t ipaddr, arp_send_finish_cb_t 
cb)
 
   if (!state)
     {
-      nerr("ERROR: %s \n", ENOMEM_STR);
+      nerr("ERROR: Out of memory\n");
       ret = -ENOMEM;
       goto errout;
     }

Reply via email to