mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
log BTstack version, revision, and build date in dump file
This commit is contained in:
parent
a2f2df82c6
commit
11d5dec16d
@ -58,6 +58,7 @@
|
|||||||
#include <btstack/linked_list.h>
|
#include <btstack/linked_list.h>
|
||||||
#include <btstack/run_loop.h>
|
#include <btstack/run_loop.h>
|
||||||
#include <btstack/hci_cmds.h>
|
#include <btstack/hci_cmds.h>
|
||||||
|
#include <btstack/version.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "hci.h"
|
#include "hci.h"
|
||||||
@ -1227,7 +1228,6 @@ int main (int argc, char * const * argv){
|
|||||||
|
|
||||||
// make stdout unbuffered
|
// make stdout unbuffered
|
||||||
setbuf(stdout, NULL);
|
setbuf(stdout, NULL);
|
||||||
log_error("BTdaemon started\n");
|
|
||||||
|
|
||||||
// handle CTRL-c
|
// handle CTRL-c
|
||||||
signal(SIGINT, daemon_sigint_handler);
|
signal(SIGINT, daemon_sigint_handler);
|
||||||
@ -1300,6 +1300,10 @@ int main (int argc, char * const * argv){
|
|||||||
#endif
|
#endif
|
||||||
daemon_set_logging_enabled(newLoggingEnabled);
|
daemon_set_logging_enabled(newLoggingEnabled);
|
||||||
|
|
||||||
|
// dump version
|
||||||
|
log_info("BTdaemon started\n");
|
||||||
|
log_info("version %s, svn r%u, build %s", BTSTACK_VERSION, BTSTACK_REVISION, BTSTACK_DATE);
|
||||||
|
|
||||||
// init HCI
|
// init HCI
|
||||||
hci_init(transport, &config, control, remote_device_db);
|
hci_init(transport, &config, control, remote_device_db);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user