Gary-Hobson commented on code in PR #2859:
URL: https://github.com/apache/nuttx-apps/pull/2859#discussion_r1852272927


##########
system/gcov/gcov.c:
##########
@@ -69,6 +69,72 @@ static void gcov_dump(FAR const char * path, FAR const char 
*strip)
   __gcov_dump();
 }
 
+/****************************************************************************
+ * Name: stdout_dump
+ ****************************************************************************/
+
+#ifndef CONFIG_COVERAGE_TOOLCHAIN
+static void stdout_dump(FAR const void *buffer, size_t size,
+                        FAR void *arg)
+{
+  FAR const char *name = *((FAR const char **)arg);
+  struct lib_stdoutstream_s stdoutstream;
+  struct lib_hexdumpstream_s hexstream;
+  uint16_t checksum = 0;
+  int i;
+
+  if (size == 0)
+    {
+      return;
+    }
+
+  for (i = 0; i < size; i++)
+    {
+      checksum += ((FAR const uint8_t *)buffer)[i];
+    }
+
+  printf("gcov start filename:%s size: %zuByte\n", name, size);
+  lib_stdoutstream(&stdoutstream, stdout);

Review Comment:
   Done



##########
system/gcov/gcov.c:
##########
@@ -69,6 +69,72 @@ static void gcov_dump(FAR const char * path, FAR const char 
*strip)
   __gcov_dump();
 }
 
+/****************************************************************************
+ * Name: stdout_dump
+ ****************************************************************************/
+
+#ifndef CONFIG_COVERAGE_TOOLCHAIN
+static void stdout_dump(FAR const void *buffer, size_t size,
+                        FAR void *arg)
+{
+  FAR const char *name = *((FAR const char **)arg);
+  struct lib_stdoutstream_s stdoutstream;
+  struct lib_hexdumpstream_s hexstream;
+  uint16_t checksum = 0;
+  int i;
+
+  if (size == 0)
+    {
+      return;
+    }
+
+  for (i = 0; i < size; i++)
+    {
+      checksum += ((FAR const uint8_t *)buffer)[i];
+    }
+
+  printf("gcov start filename:%s size: %zuByte\n", name, size);

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-unsubscr...@nuttx.apache.org

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

Reply via email to