tizen 2.3 release
[framework/system/deviced.git] / src / auto-test / result.c
1 /*
2  * test
3  *
4  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #include <stdio.h>
20 #include <errno.h>
21 #include <E_DBus.h>
22
23 #include "core/list.h"
24 #include "core/common.h"
25
26 #ifdef ENABLE_TEST_DLOG
27 #define ENABLE_DLOG
28 #endif
29
30 #define LOG_TAG "ATR" //AUTO_TESTE_RESULT
31 #include "shared/log-macro.h"
32
33 #define BUF_MAX 256
34
35 void _R (const char *format, ...)
36 {
37         va_list args;
38         char buf[BUF_MAX];
39
40         va_start(args, format);
41         vsnprintf(buf, BUF_MAX, format, args);
42         va_end(args);
43
44         _D("%s", buf);
45 }