net: ieee802154: Logging header should be loaded first

net_core.h is loading sys_log.h as well, so we need to be
first in order to setup some local definitions.

Change-Id: Ife482bd21e314aa5a5e88433eb8f9a560f9d53a6
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-08-10 11:05:51 +02:00 committed by Jukka Rissanen
commit 434ba9311c
2 changed files with 4 additions and 4 deletions

View file

@ -16,6 +16,10 @@
* limitations under the License. * limitations under the License.
*/ */
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_TI_CC2520_LEVEL
#define SYS_LOG_NO_NEWLINE
#include <misc/sys_log.h>
#include <errno.h> #include <errno.h>
#include <nanokernel.h> #include <nanokernel.h>

View file

@ -19,10 +19,6 @@
#ifndef __IEEE802154_CC2520_H__ #ifndef __IEEE802154_CC2520_H__
#define __IEEE802154_CC2520_H__ #define __IEEE802154_CC2520_H__
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_TI_CC2520_LEVEL
#define SYS_LOG_NO_NEWLINE
#include <misc/sys_log.h>
#include <sections.h> #include <sections.h>
#include <atomic.h> #include <atomic.h>
#include <spi.h> #include <spi.h>