summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 615745c)
raw | patch | inline | side by side (parent: 615745c)
author | Daniel Colascione <dancol@google.com> | |
Mon, 12 Feb 2018 19:24:47 +0000 (11:24 -0800) | ||
committer | Suren Baghdasaryan <surenb@google.com> | |
Fri, 3 Aug 2018 16:08:01 +0000 (16:08 +0000) |
Test: asdf
Exempt-From-Owner-Approval: vacation
Merged-In: If6af7df74d303466aac4a69cdfe558e9748f72b9
Change-Id: If6af7df74d303466aac4a69cdfe558e9748f72b9
Exempt-From-Owner-Approval: vacation
Merged-In: If6af7df74d303466aac4a69cdfe558e9748f72b9
Change-Id: If6af7df74d303466aac4a69cdfe558e9748f72b9
lmkd/Android.bp | patch | blob | history | |
lmkd/lmkd.c | patch | blob | history |
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 2efda86cdba7d7e960f45b1d20db89067e445f4a..9ac082f546db3e4b24b0f18639a85bdba4d0838e 100644 (file)
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
"liblog",
],
local_include_dirs: ["include"],
- cflags: ["-Werror"],
-
+ cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
init_rc: ["lmkd.rc"],
-
- product_variables: {
- debuggable: {
- cflags: [
- "-DLMKD_TRACE_KILLS"
- ],
- },
- },
}
cc_library_static {
diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c
index e7c13e0c8970d69bdbdc34fecbea4c3dab71e2a0..1a14be3e13181a47bf5d0a5262d52e9de81d8fc2 100644 (file)
--- a/lmkd/lmkd.c
+++ b/lmkd/lmkd.c
#else /* LMKD_TRACE_KILLS */
-#define TRACE_KILL_START(pid)
-#define TRACE_KILL_END()
+#define TRACE_KILL_START(pid) ((void)(pid))
+#define TRACE_KILL_END() ((void)0)
#endif /* LMKD_TRACE_KILLS */