mirror of
https://github.com/physwizz/a155-U-u1.git
synced 2024-11-19 13:27:49 +00:00
28 lines
487 B
C
28 lines
487 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016 MediaTek Inc.
|
|
*/
|
|
|
|
#ifndef AUDIO_ASSERT_H
|
|
#define AUDIO_ASSERT_H
|
|
|
|
#define AUD_ASSERT(exp) \
|
|
do { \
|
|
if (!(exp)) { \
|
|
pr_notice("ASSERT("#exp")!! \"" __FILE__ "\", %uL\n", \
|
|
__LINE__); \
|
|
WARN_ON(1); \
|
|
} \
|
|
} while (0)
|
|
|
|
#define AUD_WARNING(string) \
|
|
do { \
|
|
pr_notice("AUD_WARNING(" string"): \"" __FILE__ "\", %uL\n", \
|
|
__LINE__); \
|
|
WARN_ON(1); \
|
|
} while (0)
|
|
|
|
|
|
#endif /* end of AUDIO_ASSERT_H */
|
|
|