/*
 * 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 __DSMSTZ_LOG_H__
#define __DSMSTZ_LOG_H__

#include <stdio.h>

#ifndef LOG_TAG
#define LOG_TAG "[DSMSTZ]"
#endif

#ifdef DEBUG
#define LOGD(fmt, ...) printf("%s " fmt "\n", LOG_TAG, ##__VA_ARGS__)
#else
#define LOGD(fmt, ...)
#endif

#define LOGE(fmt, ...) printf("%s " fmt "\n", LOG_TAG, ##__VA_ARGS__)

#define LOGD_UUID(uuid) LOGD("%x %x %x %x %x %x %x %x %x %x %x", \
			uuid.timeLow, uuid.timeMid, uuid.timeHiAndVersion, \
			uuid.clockSeqAndNode[0], uuid.clockSeqAndNode[1],  \
			uuid.clockSeqAndNode[2], uuid.clockSeqAndNode[3],  \
			uuid.clockSeqAndNode[4], uuid.clockSeqAndNode[5],  \
			uuid.clockSeqAndNode[6], uuid.clockSeqAndNode[7])

#endif /* __DSMSTZ_LOG_H__ */
