blob: 32d55c7a5a6e1d38249afbbbbec0aabecedc7742 [file] [log] [blame]
Than McIntosh7e2f4e92015-03-05 11:05:02 -05001/*
2**
3** Copyright 2015, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18#define LOG_TAG "perfprofd"
19
20#include <stdarg.h>
21#include <unistd.h>
22
23#include <utils/Log.h>
24
25#include "perfprofdutils.h"
26
27void perfprofd_log_error(const char *fmt, ...)
28{
29 va_list ap;
30 va_start(ap, fmt);
31 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, fmt, ap);
32 va_end(ap);
33}
34
35void perfprofd_log_warning(const char *fmt, ...)
36{
37 va_list ap;
38 va_start(ap, fmt);
39 LOG_PRI_VA(ANDROID_LOG_WARN, LOG_TAG, fmt, ap);
40 va_end(ap);
41}
42
43void perfprofd_log_info(const char *fmt, ...)
44{
45 va_list ap;
46 va_start(ap, fmt);
47 LOG_PRI_VA(ANDROID_LOG_INFO, LOG_TAG, fmt, ap);
48 va_end(ap);
49}
50
51void perfprofd_sleep(int seconds)
52{
53 sleep(seconds);
54}