[RFC v3 0/2] Fix debug messages logging from non-built-in plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux