summaryrefslogtreecommitdiff
path: root/lib/libavb/fsl/debug.h
blob: c1165ec1ec1ac842d8485cc25f5dfe0cd325cc56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (C) 2016 Freescale Semiconductor, Inc.
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#ifndef __AVB_DEBUG_H__
#define __AVB_DEBUG_H__

#ifdef AVB_VVDEBUG
#define AVB_VDEBUG
#define VVDEBUG(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
#else
#define VVDEBUG(format, ...)
#endif

#ifdef AVB_VDEBUG
#define AVB_DEBUG
#define VDEBUG(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
#else
#define VDEBUG(format, ...)
#endif

#ifdef AVB_DEBUG
#define DEBUGAVB(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
#else
#define DEBUGAVB(format, ...)
#endif

#define ERR(format, ...) printf("%s: "format, __func__, ##__VA_ARGS__)

#define HEXDUMP_COLS 16
#define HEXDUMP_WIDTH 1

#endif