Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
0e37ab7c
Commit
0e37ab7c
authored
May 09, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/trace.h: PTPD now has independent trace macro
parent
77ebeae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
80 deletions
+4
-80
trace.h
include/trace.h
+4
-80
No files found.
include/trace.h
View file @
0e37ab7c
//#ifndef _
_TRACE_H__
//#define _
_TRACE_H__
#ifndef __FREESTANDING
_TRACE_H__
#define __FREESTANDING
_TRACE_H__
#define MSGS_PROTO 0 // PTPWRd/protocol.c
#define MSGS_WRPROTO 0 // PTPWRd/wr_protocol.c
#define MSGS_WRSERVO 0 // PTPWRd/dep/wr_servo.c
#define MSGS_MSG 0 // PTPWRd/dep/msg.c PTPWRd/dep/startup.c
#define MSGS_NET 0 // PTPWRd/dep/net.c
#define MSGS_ERR 0
#define MSGS_BMC 0 // PTPWRd/bmc.c
#define MSGS_PTPD 0 // PTPWRd/ptpd.c
#define MSGS_WRAPPER 0 // libposix/freestanding_wrapper.c
#define MSGS_DISPLAY 0 // libposix/freestanding_display.c
#define MSGS_DEV 0 // dev/*
#define TRACE_WRAP(...)
#define TRACE_DEV(...)
#if MSGS_PROTO
#define TRACE_PROTO(...) mprintf("[PROTO ]: " __VA_ARGS__)
#else
#define TRACE_PROTO(...)
#endif
#if MSGS_WRPROTO
#define TRACE_WRPROTO(...) mprintf("[WRPROTO]: " __VA_ARGS__)
#else
#define TRACE_WRPROTO(...)
#endif
#if MSGS_WRSERVO
#define TRACE_WRSERVO(...) mprintf("[WR SRV ]: " __VA_ARGS__)
#else
#define TRACE_WRSERVO(...)
#endif
#if MSGS_MSG
#define TRACE_MSG(...) mprintf("[MSG ]: " __VA_ARGS__)
#else
#define TRACE_MSG(...)
#endif
#if MSGS_NET
#define TRACE_NET(...) mprintf("[NET ]: " __VA_ARGS__)
#else
#define TRACE_NET(...)
#endif
#if MSGS_ERR
#define TRACE_ERR(...) mprintf("[ERROR ]: " __VA_ARGS__)
#else
#define TRACE_ERR(...)
#endif
#if MSGS_BMC
#define TRACE_BMC(...) mprintf("[BMC ]: " __VA_ARGS__)
#else
#define TRACE_BMC(...)
#endif
#if MSGS_PTPD
#define TRACE_PTPD(...) mprintf("[PTPD ]: " __VA_ARGS__)
#else
#define TRACE_PTPD(...)
#endif
#if MSGS_WRAPPER
#define TRACE_WRAP(...) mprintf("[WRAPPER]: " __VA_ARGS__)
#else
#define TRACE_WRAP(...)
#endif
#if MSGS_DISPLAY
#define TRACE_DISP(...) mprintf("[DISPLAY]: " __VA_ARGS__)
#else
#define TRACE_DISP(...)
#endif
#if MSGS_DEV
#define TRACE_DEV(...) mprintf("[DEV ]: " __VA_ARGS__)
#else
#define TRACE_DEV(...)
#endif
//#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment