<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SDK v15.0.0 flashlog read CLI command has issues with the character &amp;#39;%&amp;#39; in the strings.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39974/sdk-v15-0-0-flashlog-read-cli-command-has-issues-with-the-character-in-the-strings</link><description>Hi there, 
 Seems that the flashlog read processes a log entry from flash using nrf_log_std/hexdump_entry_process, which does take care of the formatting string in the entry, and provides a ready to print buffer... but then it is passed to cli_tx (as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Nov 2018 08:10:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39974/sdk-v15-0-0-flashlog-read-cli-command-has-issues-with-the-character-in-the-strings" /><item><title>RE: SDK v15.0.0 flashlog read CLI command has issues with the character '%' in the strings.</title><link>https://devzone.nordicsemi.com/thread/157221?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 08:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3a87174-8421-42ea-9098-4feb85386727</guid><dc:creator>David Fernandez</dc:creator><description>&lt;p&gt;Thanks Martin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v15.0.0 flashlog read CLI command has issues with the character '%' in the strings.</title><link>https://devzone.nordicsemi.com/thread/157002?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 08:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6246cf3-ddd4-4dcb-9b8b-53a1770ce99a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK team says that what you are doing is the correct way to do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK v15.0.0 flashlog read CLI command hass issues with the character '%' in the strings.</title><link>https://devzone.nordicsemi.com/thread/155192?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 15:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e5f0c19-ae05-4a06-b651-52aef7c40c8c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Not sure if there are any better ways to do it. I have asked the SDK team for a comment.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The flashlog read CLI command hass issues with the character '%' in the strings.</title><link>https://devzone.nordicsemi.com/thread/155000?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 07:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3b8e213-f9d7-43ea-9cc3-4297a38d1ed4</guid><dc:creator>David Fernandez</dc:creator><description>&lt;p&gt;I guess this is the way to fix that... let me know if there is a better way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;--- a/import/nRF5_SDK/components/libraries/experimental_log/src/nrf_log_backend_flash.c
+++ b/import/nRF5_SDK/components/libraries/experimental_log/src/nrf_log_backend_flash.c
...
 //#include &amp;quot;nrf_delay.h&amp;quot;
 static void cli_tx(void const * p_context, char const * p_buffer, size_t len)
 {
     nrf_cli_t * * pp_cli = (nrf_cli_t * *)p_context;
     char * p_strbuf = (char *)&amp;amp;p_buffer[len];
     *p_strbuf = &amp;#39;\0&amp;#39;;
-    nrf_cli_fprintf((nrf_cli_t const *)*pp_cli, NRF_CLI_DEFAULT, p_buffer);
+    nrf_cli_fprintf((nrf_cli_t const *) *pp_cli, NRF_CLI_DEFAULT, &amp;quot;%s&amp;quot;, p_buffer);
    // nrf_delay_ms(10);
 }
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>