• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef _RECOVERY_UPDATE_LOG_H_
17 #define _RECOVERY_UPDATE_LOG_H_
18 
19 #ifdef USE_LOGCAT
20 #include <cutils/log.h>
21 #else
22 /* when running in recovery mode, only stdout is logged properly */
23 #define ALOGD(format, args...) printf("D %s: " format, LOG_TAG, ## args)
24 #define ALOGI(format, args...) printf("I %s: " format, LOG_TAG, ## args)
25 #define ALOGW(format, args...) printf("W %s: " format, LOG_TAG, ## args)
26 #define ALOGE(format, args...) printf("E %s: " format, LOG_TAG, ## args)
27 #endif
28 
29 #endif /* _RECOVERY_UPDATE_LOG_H_ */
30