ccollins476ad closed pull request #1302: sys/log/stub: Define one instance of log handlers URL: https://github.com/apache/mynewt-core/pull/1302
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/sys/log/stub/include/log/log.h b/sys/log/stub/include/log/log.h index 35e1409de1..1e89e3e571 100644 --- a/sys/log/stub/include/log/log.h +++ b/sys/log/stub/include/log/log.h @@ -56,11 +56,11 @@ log_init(void) /* * Dummy handler exports. */ -const struct log_handler log_console_handler; -const struct log_handler log_cbmem_handler; -const struct log_handler log_fcb_handler; +extern const struct log_handler log_console_handler; +extern const struct log_handler log_cbmem_handler; +extern const struct log_handler log_fcb_handler; #if MYNEWT_VAL(LOG_FCB_SLOT1) -const struct log_handler log_fcb_slot1_handler; +extern const struct log_handler log_fcb_slot1_handler; #endif #if MYNEWT_VAL(LOG_CONSOLE) diff --git a/sys/log/stub/src/log.c b/sys/log/stub/src/log.c index a4f6779183..4dc6555959 100644 --- a/sys/log/stub/src/log.c +++ b/sys/log/stub/src/log.c @@ -21,3 +21,9 @@ #include "log/log.h" struct log_info g_log_info; +const struct log_handler log_console_handler; +const struct log_handler log_cbmem_handler; +const struct log_handler log_fcb_handler; +#if MYNEWT_VAL(LOG_FCB_SLOT1) +const struct log_handler log_fcb_slot1_handler; +#endif ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
