DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Question about log levels and rte_panic
@ 2016-02-13 17:43 Wiles, Keith
  2016-02-13 19:12 ` Matthew Hall
  2016-02-14 20:23 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Wiles, Keith @ 2016-02-13 17:43 UTC (permalink / raw)
  To: dev


I have some code I have been debugging that does a rte_panic() at some point. The problem is it just appeared to exit without printing the panic message. I tracked it down to rte_vlog() doing the following test.

 if ((level > rte_logs.level) || !(logtype & rte_logs.type))
      return 0;
 
The reason it appears to just exit to the shell is I was setting —log-level 0 on the command line, which means no CRIT, EMERG or ALERTs panic messages are printed. If I set the log-level 3 then I am able to see these ‘critical’ panic messages, is this the expected behavior?

I would expect EMERG, ALERT and CRIT messages to be printed regardless of the log-level value, but I guess it just means log-level 3 is the lowest level unless you really do not want these messages printed.


Regards,
Keith





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-14 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-13 17:43 [dpdk-dev] Question about log levels and rte_panic Wiles, Keith
2016-02-13 19:12 ` Matthew Hall
2016-02-14 20:23 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).