You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/24 03:36:40 UTC

[GitHub] [incubator-nuttx] chengkai15 commented on a diff in pull request #6898: libc: add lib_dump utils

chengkai15 commented on code in PR #6898:
URL: https://github.com/apache/incubator-nuttx/pull/6898#discussion_r953301516


##########
libs/libc/misc/lib_dumpbuffer.c:
##########
@@ -32,6 +32,27 @@
  * Public Functions
  ****************************************************************************/
 
+/****************************************************************************
+ * Name: lib_dumphandler
+ *
+ * Description:
+ *  Do a pretty buffer dump with handler output.
+ *
+ ****************************************************************************/
+
+void lib_dumphandler(FAR const char *msg, FAR const uint8_t *buffer,
+                     unsigned int buflen, lib_dump_handler_t handler,
+                     FAR void *arg)
+{
+  struct iovec buf =
+    {
+      .iov_base = (FAR char *)buffer,
+      .iov_len = buflen,

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org