msm8974-common: init: Update for O

Change-Id: I60475e3dbf68329a46c421e8c8465a4ea2e28203
This commit is contained in:
Luca Stefani 2017-08-18 11:39:28 +02:00 committed by Kevin F. Haggerty
parent ed60e16ea2
commit 6c9bcca316
2 changed files with 19 additions and 1 deletions

View file

@ -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)

View file

@ -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;
}