Seperate logging to another header

This commit is contained in:
topjohnwu
2017-09-14 21:54:56 +08:00
parent 7394ff9346
commit 1816ca6b02
9 changed files with 72 additions and 60 deletions

View File

@@ -1,10 +0,0 @@
/* magisk.h - Let MagiskBoot use the same error handling API as main magisk program
*/
#ifndef _MAGISK_H_
#define _MAGISK_H_
#define LOGE(err, ...) { fprintf(stderr, __VA_ARGS__); exit(err); }
#define PLOGE(fmt, args...) { fprintf(stderr, fmt " failed with %d: %s\n\n", ##args, errno, strerror(errno)); exit(1); }
#endif

View File

@@ -14,7 +14,7 @@
#include "bootimg.h"
#include "sha1.h"
#include "magisk.h"
#include "logging.h"
#include "utils.h"
#include "magic.h"