/*
 * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * PROPRIETARY/CONFIDENTIAL
 *
 * This software is the confidential and proprietary information of Samsung
 * Electronics Co., Ltd. ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with the terms of
 * the license agreement you entered into with Samsung Electronics Co., Ltd. ("SAMSUNG")
 * SAMSUNG MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
 * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT
 * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SAMSUNG SHALL NOT BE
 * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
 * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

#ifndef __DSMSTA_LOG_H__
#define __DSMSTA_LOG_H__

#include "dsmsta_klog.h"
#include "qsee_log.h"

#ifndef LOG_TAG
#define LOG_TAG "[DSMSTZ]"
#endif

#ifdef __DEBUG__
#define LOGD(fmt, ...) \
		do { \
			KLOG_DEBUG(LOG_TAG, fmt, ##__VA_ARGS__); \
			qsee_log(QSEE_LOG_MSG_DEBUG, fmt, ##__VA_ARGS__); \
		} while(0)
#else
#define LOGD(fmt, ...)
#endif

#define LOGE(fmt, ...) \
 		do { \
			KLOG_ERROR(LOG_TAG, fmt, ##__VA_ARGS__); \
			qsee_log(QSEE_LOG_MSG_ERROR, fmt, ##__VA_ARGS__); \
		} while(0)

#endif /* __DSMSTA_LOG_H__ */
