Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | /** |
| 2 | * @file IxQMgrLog_p.h |
| 3 | * |
| 4 | * @author Intel Corporation |
| 5 | * @date 07-Feb-2002 |
| 6 | * |
| 7 | * @brief This file contains the internal functions for config |
| 8 | * |
| 9 | * |
| 10 | * @par |
| 11 | * IXP400 SW Release version 2.0 |
| 12 | * |
| 13 | * -- Copyright Notice -- |
| 14 | * |
| 15 | * @par |
| 16 | * Copyright 2001-2005, Intel Corporation. |
| 17 | * All rights reserved. |
| 18 | * |
| 19 | * @par |
Wolfgang Denk | c57eadc | 2013-07-28 22:12:47 +0200 | [diff] [blame] | 20 | * SPDX-License-Identifier: BSD-3-Clause |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 21 | * @par |
| 22 | * -- End of Copyright Notice -- |
| 23 | */ |
| 24 | |
| 25 | #ifndef IXQMGRLOG_P_H |
| 26 | #define IXQMGRLOG_P_H |
| 27 | |
| 28 | /* |
| 29 | * User defined header files |
| 30 | */ |
| 31 | #include "IxOsal.h" |
| 32 | |
| 33 | /* |
| 34 | * Macros |
| 35 | */ |
| 36 | |
| 37 | #define IX_QMGR_LOG0(string) do\ |
| 38 | {\ |
| 39 | ixOsalLog(IX_OSAL_LOG_LVL_USER, IX_OSAL_LOG_DEV_STDOUT, string, 0, 0, 0, 0, 0, 0);\ |
| 40 | }while(0); |
| 41 | |
| 42 | #define IX_QMGR_LOG1(string, arg1) do\ |
| 43 | {\ |
| 44 | ixOsalLog(IX_OSAL_LOG_LVL_USER, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, 0, 0, 0, 0, 0);\ |
| 45 | }while(0); |
| 46 | |
| 47 | #define IX_QMGR_LOG2(string, arg1, arg2) do\ |
| 48 | {\ |
| 49 | ixOsalLog(IX_OSAL_LOG_LVL_USER, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, (int)arg2, 0, 0, 0, 0);\ |
| 50 | }while(0); |
| 51 | |
| 52 | #define IX_QMGR_LOG3(string, arg1, arg2, arg3) do\ |
| 53 | {\ |
| 54 | ixOsalLog(IX_OSAL_LOG_LVL_USER, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, (int)arg2, (int)arg3, 0, 0, 0);\ |
| 55 | }while(0); |
| 56 | |
| 57 | #define IX_QMGR_LOG6(string, arg1, arg2, arg3, arg4, arg5, arg6) do\ |
| 58 | {\ |
| 59 | ixOsalLog(IX_OSAL_LOG_LVL_USER, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5, (int)arg6); \ |
| 60 | }while(0); |
| 61 | |
| 62 | #define IX_QMGR_LOG_WARNING0(string) do\ |
| 63 | {\ |
| 64 | ixOsalLog(IX_OSAL_LOG_LVL_WARNING, IX_OSAL_LOG_DEV_STDOUT, string, 0, 0, 0, 0, 0, 0);\ |
| 65 | }while(0); |
| 66 | |
| 67 | #define IX_QMGR_LOG_WARNING1(string, arg1) do\ |
| 68 | {\ |
| 69 | ixOsalLog(IX_OSAL_LOG_LVL_WARNING, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, 0, 0, 0, 0, 0);\ |
| 70 | }while(0); |
| 71 | |
| 72 | #define IX_QMGR_LOG_WARNING2(string, arg1, arg2) do\ |
| 73 | {\ |
| 74 | ixOsalLog(IX_OSAL_LOG_LVL_WARNING, IX_OSAL_LOG_DEV_STDOUT, string, (int)arg1, (int)arg2, 0, 0, 0, 0);\ |
| 75 | }while(0); |
| 76 | |
| 77 | #define IX_QMGR_LOG_ERROR0(string) do\ |
| 78 | {\ |
| 79 | ixOsalLog(IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDERR, string, 0, 0, 0, 0, 0, 0);\ |
| 80 | }while(0); |
| 81 | |
| 82 | #define IX_QMGR_LOG_ERROR1(string, arg1) do\ |
| 83 | {\ |
| 84 | ixOsalLog(IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDERR, string, (int)arg1, 0, 0, 0, 0, 0);\ |
| 85 | }while(0); |
| 86 | |
| 87 | #define IX_QMGR_LOG_ERROR2(string, arg1, arg2) do\ |
| 88 | {\ |
| 89 | ixOsalLog(IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDERR, string, (int)arg1, (int)arg2, 0, 0, 0, 0);\ |
| 90 | }while(0); |
| 91 | |
| 92 | #define IX_QMGR_LOG_ERROR3(string, arg1, arg2, arg3) do\ |
| 93 | {\ |
| 94 | ixOsalLog(IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDERR, string, (int)arg1, (int)arg2, (int)arg3, 0, 0, 0);\ |
| 95 | }while(0); |
| 96 | #endif /* IX_QMGRLOG_P_H */ |
| 97 | |
| 98 | |
| 99 | |
| 100 | |