<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">This patch looks good.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 19, 2023 at 12:43 AM <<a href="mailto:aaron.nyholm@unfoldedeffective.com" target="_blank">aaron.nyholm@unfoldedeffective.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Aaron Nyholm <<a href="mailto:aaron.nyholm@southerninnovation.com" target="_blank">aaron.nyholm@southerninnovation.com</a>><br>
<br>
---<br>
 cpukit/libmisc/shell/main_flashdev.c | 11 +++++++++--<br>
 1 file changed, 9 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c<br>
index ca2454b33c..dc73d3f9db 100644<br>
--- a/cpukit/libmisc/shell/main_flashdev.c<br>
+++ b/cpukit/libmisc/shell/main_flashdev.c<br>
@@ -199,7 +199,7 @@ int flashdev_shell_read(<br>
   }<br>
<br>
   /* Print buffer out in 32bit blocks */<br>
-  printf("Reading %s at 0x%08x for %d bytes\n", dev_path, address, bytes);<br>
+  printf("Reading %s at 0x%08x for 0x%x bytes\n", dev_path, address, bytes);<br>
   for (int i = 0; i < (bytes/4); i++) {<br>
     printf("%08x ", ((uint32_t*)buffer)[i]);<br>
     if ((i+1)%4 == 0) {<br>
@@ -281,6 +281,13 @@ int flashdev_shell_write(<br>
     return -1;<br>
   }<br>
<br>
+  printf(<br>
+    "Writing %s to %s at 0x%08x for 0x%jx bytes\n",<br>
+    file_path,<br>
+    dev_path,<br>
+    address,<br>
+    length<br>
+  );<br>
   /* Create buffer */<br>
   buffer = calloc(1, 0x1000);<br>
<br>
@@ -358,7 +365,7 @@ int flashdev_shell_erase(<br>
     return -1;<br>
   }<br>
<br>
-  printf("Erasing at %08x for %x bytes\n", address, bytes);<br>
+  printf("Erasing at 0x%08x for 0x%x bytes\n", address, bytes);<br>
<br>
   /* Erase flash */<br>
   args.offset = address;<br>
-- <br>
2.25.1<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>