macloader: Fix build warning with LOG defines.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 26 Jan 2015 22:14:17 +0000 (23:14 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 27 Jan 2015 07:58:28 +0000 (08:58 +0100)
They need to be set before log.h is included or we will get redefiniton
warnings.

Change-Id: I87e971d32139a807998468e6a781e1f39dd7a8e5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
macloader/macloader.c

index c56743a14947758f836e374644ee62ce7ab9eb77..e1825882c8f5e02dfdcf427008f8b23f411bed30 100644 (file)
  * limitations under the License.
  */
 
+#define LOG_TAG "macloader"
+#define LOG_NDEBUG 0
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <cutils/log.h>
 
-#define LOG_TAG "macloader"
-#define LOG_NDEBUG 0
+#include <cutils/log.h>
 
 #define MACADDR_PATH "/efs/wifi/.mac.info"
 #define CID_PATH "/data/.cid.info"