no-OS
Loading...
Searching...
No Matches
no_os_print_log.h File Reference

Print messages helpers. More...

#include <stdio.h>
Include dependency graph for no_os_print_log.h:

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.

SPDX-License-Identifier: BSD-3-Clause

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... )
Value:
do { \
pr_time \
printf("DEBUG: " fmt, ##args); \
} while(0)

◆ 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)