<?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>How to turn off the following log message</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101248/how-to-turn-off-the-following-log-message</link><description>How to turn off the following log message？ 
 &amp;lt;wrn&amp;gt; cbprintf_package: cbprintf_package_convert: (unsigned) char * used for %p argument. It&amp;#39;s recommended to cast it to void * because it may cause misbehavior in certain configurations. String:&amp;quot;%s: (%p):</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2023 10:59:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101248/how-to-turn-off-the-following-log-message" /><item><title>RE: How to turn off the following log message</title><link>https://devzone.nordicsemi.com/thread/433187?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 10:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ecf7f94-d6c3-4558-9cde-b3d4e6117251</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It looks like potential mismatch when passing the arguments to the cbprintf_package_convert.&lt;/p&gt;
&lt;p&gt;It is better to resolve the warning by correctly (explicitly) doing the typecasting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest to have a look at the function prototype and the data/arguments you are passing.&lt;/p&gt;
[quote user=""]How to turn off the following log message[/quote]
&lt;p&gt;But if you want to turn-off the logger module, then you can disable it by config option in the prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=n&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to enable the logger module, but don&amp;#39;t want to see the warnings, then you can change the log level by registering with the LOG_MODULE_REGISTER() and passing&amp;nbsp;&lt;span&gt;LOG_LEVEL_ERR as the second argument. It is typically at the top (under #define) of main code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Naeem&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>