build: remove library name from version map file name
[dpdk.git] / drivers / net / ark / ark_logs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Atomic Rules LLC
3  */
4
5 #ifndef _ARK_DEBUG_H_
6 #define _ARK_DEBUG_H_
7
8 #include <inttypes.h>
9 #include <rte_log.h>
10
11 /* system camel case definition changed to upper case */
12 #define PRIU32 PRIu32
13 #define PRIU64 PRIu64
14
15 /* Format specifiers for string data pairs */
16 #define ARK_SU32  "\n\t%-20s    %'20" PRIU32
17 #define ARK_SU64  "\n\t%-20s    %'20" PRIU64
18 #define ARK_SU64X "\n\t%-20s    %#20" PRIx64
19 #define ARK_SPTR  "\n\t%-20s    %20p"
20
21 extern int ark_logtype;
22
23 #define ARK_PMD_LOG(level, fmt, args...)        \
24         rte_log(RTE_LOG_ ##level, ark_logtype, "ARK: " fmt, ## args)
25
26
27 /* Debug macro to enable core debug code */
28 #ifdef RTE_LIBRTE_ETHDEV_DEBUG
29 #define ARK_DEBUG_CORE 1
30 #else
31 #define ARK_DEBUG_CORE 0
32 #endif
33
34 #endif