no-OS
Macros
no_os_print_log.h File Reference

Print messages helpers. More...

#include <stdio.h>
Include dependency graph for no_os_print_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NO_OS_LOG_EMERG   0x0
 
#define NO_OS_LOG_ALERT   0x1
 
#define NO_OS_LOG_CRIT   0x2
 
#define NO_OS_LOG_ERR   0x3
 
#define NO_OS_LOG_WARNING   0x4
 
#define NO_OS_LOG_NOTICE   0x5
 
#define NO_OS_LOG_INFO   0x6
 
#define NO_OS_LOG_DEBUG   0x7
 
#define NO_OS_LOG_LEVEL   NO_OS_LOG_INFO
 
#define pr_time   ;
 
#define pr_emerg(fmt, args...)
 
#define pr_alert(fmt, args...)
 
#define pr_crit(fmt, args...)
 
#define pr_err(fmt, args...)
 
#define pr_warning(fmt, args...)
 
#define pr_notice(fmt, args...)
 
#define pr_info(fmt, args...)
 
#define pr_debug(fmt, args...)
 

Detailed Description

Print messages helpers.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2020(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ NO_OS_LOG_ALERT

#define NO_OS_LOG_ALERT   0x1

◆ NO_OS_LOG_CRIT

#define NO_OS_LOG_CRIT   0x2

◆ NO_OS_LOG_DEBUG

#define NO_OS_LOG_DEBUG   0x7

◆ NO_OS_LOG_EMERG

#define NO_OS_LOG_EMERG   0x0

◆ NO_OS_LOG_ERR

#define NO_OS_LOG_ERR   0x3

◆ NO_OS_LOG_INFO

#define NO_OS_LOG_INFO   0x6

◆ NO_OS_LOG_LEVEL

#define NO_OS_LOG_LEVEL   NO_OS_LOG_INFO

◆ NO_OS_LOG_NOTICE

#define NO_OS_LOG_NOTICE   0x5

◆ NO_OS_LOG_WARNING

#define NO_OS_LOG_WARNING   0x4

◆ pr_alert

#define pr_alert (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("ALERT: %s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, ##args); \
} while (0)

◆ pr_crit

#define pr_crit (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("CRIT: %s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, ##args); \
} while (0)

◆ pr_debug

#define pr_debug (   fmt,
  args... 
)

◆ pr_emerg

#define pr_emerg (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("EMERG: %s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, ##args); \
} while (0)

◆ pr_err

#define pr_err (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("ERR: %s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, ##args); \
} while (0)

◆ pr_info

#define pr_info (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf(fmt, ##args); \
} while(0)

◆ pr_notice

#define pr_notice (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("NOTICE: " fmt, ##args); \
} while (0)

◆ pr_time

#define pr_time   ;

◆ pr_warning

#define pr_warning (   fmt,
  args... 
)
Value:
do { \
pr_time \
printf("WARNING: " fmt, ##args); \
} while (0)