1bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee/*
2bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee INTEL CONFIDENTIAL
3bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee Copyright 2009 Intel Corporation All Rights Reserved.
4bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material contains trade secrets and proprietary and confidential information of Intel or its suppliers and licensors. The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intel’s prior express written permission.
5bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
6bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing.
7bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee */
8bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
9bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
10bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee#include "vbp_trace.h"
11bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
12bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee#ifdef VBP_TRACE
13bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
14bd8388b4555645b3d29abc6a94c303638064d69awonjong.leevoid vbp_trace_util(const char* cat, const char* fun, int line, const char* format, ...)
15bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee{
16bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	if (NULL == cat || NULL == fun || NULL == format)
17bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee		return;
18bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
19bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	printf("%s %s(#%d): ", cat, fun, line);
20bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	va_list args;
21bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	va_start(args, format);
22bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	vprintf(format, args);
23bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	va_end(args);
24bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee	printf("\n");
25bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee}
26bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
27bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee#endif
28bd8388b4555645b3d29abc6a94c303638064d69awonjong.lee
29