diff --git a/init/Android.mk b/init/Android.mk index 54cbf27..37ac855 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -1,3 +1,19 @@ +# +# Copyright (C) 2016 The CyanogenMod Project +# 2017 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -11,4 +27,6 @@ ifneq ($(TARGET_LIBINIT_MSM8974_DEFINES_FILE),) endif LOCAL_MODULE := libinit_msm8974 +LOCAL_STATIC_LIBRARIES := libbase + include $(BUILD_STATIC_LIBRARY) diff --git a/init/init_msm8974.cpp b/init/init_msm8974.cpp index c331bf4..ab2f419 100644 --- a/init/init_msm8974.cpp +++ b/init/init_msm8974.cpp @@ -69,7 +69,7 @@ static int read_file2(const char *fname, char *data, int max_size) fd = open(fname, O_RDONLY); if (fd < 0) { - ERROR("failed to open '%s'\n", fname); + LOG(ERROR) << "failed to open " << fname << std::endl; return 0; }