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
6
Merge Requests
6
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
99710e8e
Commit
99710e8e
authored
Apr 06, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug: added board-specific debug message group
parent
15c55998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Kconfig
Kconfig
+10
-0
wrc-debug.h
include/wrc-debug.h
+2
-1
No files found.
Kconfig
View file @
99710e8e
...
...
@@ -371,6 +371,12 @@ config TRACE_DEVICES_ENABLE
bool "Print device driver trace messages"
default n
config TRACE_BOARD_ENABLE
depends on TRACE_MSGS
bool "Print board-specific trace messages"
default n
config TRACE_ALL
int
default 1 if TRACE_ALL_ENABLE
...
...
@@ -391,6 +397,10 @@ config TRACE_DEVICES
default 1 if TRACE_DEVICES_ENABLE
default 0
config TRACE_BOARD
int
default 1 if TRACE_BOARD_ENABLE
default 0
comment "wrpc-sw is tainted if you change the following options"
config DEVELOPER
...
...
include/wrc-debug.h
View file @
99710e8e
...
...
@@ -14,7 +14,7 @@
{ \
va_list vargs; \
va_start(vargs, fmt); \
pp_printf("["
#
subsys_name "] "); \
pp_printf("[" subsys_name "] "); \
pp_vprintf(fmt, vargs); \
va_end(vargs); \
} \
...
...
@@ -23,5 +23,6 @@
WRC_DEFINE_TRACE_MSG
(
CONFIG_TRACE_MAIN
,
"main"
,
main_dbg
)
WRC_DEFINE_TRACE_MSG
(
CONFIG_TRACE_STORAGE
,
"storage"
,
storage_dbg
)
WRC_DEFINE_TRACE_MSG
(
CONFIG_TRACE_DEVICES
,
"dev"
,
dev_dbg
)
WRC_DEFINE_TRACE_MSG
(
CONFIG_TRACE_BOARD
,
"board"
,
board_dbg
)
#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