<?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>LOG_XXX macro don&amp;#39;t work anymore with float or double value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64830/log_xxx-macro-don-t-work-anymore-with-float-or-double-value</link><description>Hello, 
 I&amp;#39;m porting a code from NRF Connect 1.1 to 1.3. Previously I was able to show in the console floats or double values, but now this seems not be possible anymore. 
 If I write LOG_INF(&amp;quot;Value %f&amp;quot;, val) on the console I&amp;#39;ve &amp;quot; Value %f&amp;quot;. 
 Any idea</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Aug 2020 21:27:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64830/log_xxx-macro-don-t-work-anymore-with-float-or-double-value" /><item><title>RE: LOG_XXX macro don't work anymore with float or double value</title><link>https://devzone.nordicsemi.com/thread/266336?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 21:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90a1ab06-5fb0-4495-945b-628f6a800111</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;There is the config&amp;nbsp;LOG_ENABLE_FANCY_OUTPUT_FORMATTING which changes the zephyr logger to use a different format function that appears to support printing floats.&amp;nbsp; If you just need the logger to print floats that is probably a more efficient than building in what sprintf needs to support floats.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_XXX macro don't work anymore with float or double value</title><link>https://devzone.nordicsemi.com/thread/265993?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 12:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45edf933-383f-4472-9add-e90aba03be0f</guid><dc:creator>Luca Gradassi</dc:creator><description>&lt;p&gt;I worked it around by unsing a sprintf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_XXX macro don't work anymore with float or double value</title><link>https://devzone.nordicsemi.com/thread/265990?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 12:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2636ac6-7069-4959-9e00-f151604d8e7f</guid><dc:creator>Luca Gradassi</dc:creator><description>&lt;p&gt;I&amp;#39;ve CONFIG_FPU=y in my proj.conf but still doesn&amp;#39;t work...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LOG_XXX macro don't work anymore with float or double value</title><link>https://devzone.nordicsemi.com/thread/264872?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 12:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed73fc8-45aa-424d-9ab8-677e3feff3a3</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Luca,&lt;br /&gt;&lt;br /&gt;NCS v1.3.0 is using an updated Zephyr version:&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/releases/release-notes-2.3.html#stable-api-changes-in-this-release" rel="noopener noreferrer" target="_blank"&gt;See release notes&lt;/a&gt;&lt;br /&gt;&lt;em&gt;Floating Point Services&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;FLOAT and FP_SHARING Kconfig options have been renamed to FPU and FPU_SHARING, respectively.&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So if you add CONFIG_FPU=y in prj.conf then it should work.&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>