libgdbus: Move common gdbus interfaces to libsystem package
[platform/core/system/storaged.git] / src / auto-test / result.c
1 /*
2  * storaged auto-test
3  *
4  * Copyright (c) 2018 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 <stdarg.h>
21
22 #include "shared/log.h"
23
24 #define BUF_MAX 256
25
26 void _R(const char *format, ...)
27 {
28         va_list args;
29         char buf[BUF_MAX];
30
31         va_start(args, format);
32         vsnprintf(buf, BUF_MAX, format, args);
33         va_end(args);
34
35         _D("%s", buf);
36 }