Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC v3 0/2] Fix debug messages logging from non-built-in plugins
@ 2011-08-11 13:10 Szymon Janc
  2011-08-11 13:10 ` [RFC v3 1/2] Add external dummy plugin for testing Szymon Janc
  2011-08-11 13:10 ` [RFC v3 2/2] Fix debug messages logging from non-built-in plugins Szymon Janc
  0 siblings, 2 replies; 5+ messages in thread
From: Szymon Janc @ 2011-08-11 13:10 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: par-gunnar.p.hjalmdahl, ulrik.lauren, Szymon Janc

Main change is to make stuff 'automatic' in order to minimize linker cruft
in autotools files.

This implementation suffers only one limitation: at least 1 entry must
exist in __debug section in order to link plugin. Possible solution to 
this is to add dummy entry.
But this might be not a big issue as current implementation suffers same
problem: bluetoothd will not link if DBG macro would be empty and it is
very unlikely to have plugin with no debug messages at all.

Comments are welcome.


Szymon Janc (2):
  Add external dummy plugin for testing
  Fix debug messages logging from non-built-in plugins

 Makefile.am              |    7 +++++++
 plugins/external-dummy.c |   42 ++++++++++++++++++++++++++++++++++++++++++
 src/log.c                |   38 +++++++++++++++++++++++++++++++-------
 src/log.h                |    8 ++++++++
 src/plugin.h             |   15 +++++++++++++++
 5 files changed, 103 insertions(+), 7 deletions(-)
 create mode 100644 plugins/external-dummy.c

-- 
on behalf of ST-Ericsson


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

end of thread, other threads:[~2011-08-14 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 13:10 [RFC v3 0/2] Fix debug messages logging from non-built-in plugins Szymon Janc
2011-08-11 13:10 ` [RFC v3 1/2] Add external dummy plugin for testing Szymon Janc
2011-08-14 21:12   ` Marcel Holtmann
2011-08-11 13:10 ` [RFC v3 2/2] Fix debug messages logging from non-built-in plugins Szymon Janc
2011-08-14 21:59   ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox