esp-nimble icon indicating copy to clipboard operation
esp-nimble copied to clipboard

LOG_LEVEL defines collision

Open vovagorodok opened this issue 2 years ago • 7 comments

At log_common.h we have defined:

#define LOG_LEVEL_DEBUG    (0)
#define LOG_LEVEL_INFO     (1)
#define LOG_LEVEL_WARN     (2)
#define LOG_LEVEL_ERROR    (3)
#define LOG_LEVEL_CRITICAL (4)
#define LOG_LEVEL_NONE     (5)

LOG_LEVEL.. names are very common and I have redefinition issues when another than NibBle logger is used.
Because its internal NibBle logger, proposed to use some internal names like: BLE_LOG_LEVEL.. or NIM_BLE_LOG_LEVEL..

vovagorodok avatar Nov 30 '22 15:11 vovagorodok

Hi @vovagorodok ,

ESP-IDF clones upstream mynewt-nimble and we try to be in sync with upstream code. This file is actually coming from upstream nimble code. i suggest you to also open a ticket here .

Thanks, Rahul

rahult-github avatar Dec 01 '22 01:12 rahult-github

Done, lets wait for response: https://github.com/apache/mynewt-nimble/issues/1416

vovagorodok avatar Dec 01 '22 14:12 vovagorodok

Hi, done from apache side. Lets align esp-nimble repo now :)

vovagorodok avatar Oct 06 '23 08:10 vovagorodok

@rahult-github what plans on this topic?

vovagorodok avatar Nov 22 '23 18:11 vovagorodok

I have the exact same problems with colliding defines and would like to see this solved.

Staars avatar Dec 31 '23 18:12 Staars

@rahult-github there is some issue with merging upstream? Can I help somehow?

vovagorodok avatar Mar 17 '24 12:03 vovagorodok

Hi @vovagorodok , sorry for delay.

Current nimble version of IDF is 1.5.0 .. Backporting the patch to this branch has more changes than anticipated. We are in process of migrating to IDF 1.6.0. So the patch will be applied once we migrate. Also, we will backport it for nimble-1.5.0-idf too. Will update here soon for this.

In meantime, i will rework on the backporting of the patch and share it here for your usage, that will help unblock you untill it makes way to official IDF github code

rahult-github avatar Mar 18 '24 04:03 rahult-github