mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: aidl-support: Cut off dirs on __FILE__
This commit is contained in:
parent
17c638f00a
commit
bf6b6eff34
1 changed files with 4 additions and 1 deletions
|
|
@ -3,9 +3,12 @@
|
||||||
|
|
||||||
#ifdef LOG_TAG
|
#ifdef LOG_TAG
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
|
||||||
#define make_str(a, ...) _make_str(__FILE__, __LINE__, a, ##__VA_ARGS__).c_str()
|
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||||
|
|
||||||
|
#define make_str(a, ...) _make_str(__FILENAME__, __LINE__, a, ##__VA_ARGS__).c_str()
|
||||||
|
|
||||||
// Helpers to avoid -Wformat-security
|
// Helpers to avoid -Wformat-security
|
||||||
#define LOG_E(fmt, ...) ALOGE("%s", make_str(fmt, ##__VA_ARGS__))
|
#define LOG_E(fmt, ...) ALOGE("%s", make_str(fmt, ##__VA_ARGS__))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue