Fix serial boot functionality for Mynewt
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c
index db6388e..5a0332a 100644
--- a/boot/boot_serial/src/boot_serial.c
+++ b/boot/boot_serial/src/boot_serial.c
@@ -24,6 +24,9 @@
#include "sysflash/sysflash.h"
+#define BOOT_LOG_LEVEL BOOT_LOG_LEVEL_INFO
+#include "bootutil/bootutil_log.h"
+
#ifdef __ZEPHYR__
#include <misc/reboot.h>
#include <misc/byteorder.h>
@@ -31,9 +34,6 @@
#include <flash.h>
#include <crc16.h>
#include <serial_adapter/serial_adapter.h>
-
-#define BOOT_LOG_LEVEL BOOT_LOG_LEVEL_INFO
-#include "bootutil/bootutil_log.h"
#include "mbedtls/base64.h"
#else
#include <bsp/bsp.h>