Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
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
White Rabbit Switch - Software
Commits
b9c9a1d5
Commit
b9c9a1d5
authored
Jul 23, 2013
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[toos] cosmetic improvement to tru_mon gui
parent
c435f91e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tru_mon.c
userspace/tools/tru_mon.c
+6
-6
No files found.
userspace/tools/tru_mon.c
View file @
b9c9a1d5
...
@@ -141,18 +141,18 @@ void show_ports()
...
@@ -141,18 +141,18 @@ void show_ports()
halexp_get_port_state
(
&
state
,
if_name
);
halexp_get_port_state
(
&
state
,
if_name
);
term_pcprintf
(
5
+
i
,
1
,
C_WHITE
,
"%05s: "
,
if_name
);
term_pcprintf
(
2
+
i
,
1
,
C_WHITE
,
"%05s: "
,
if_name
);
if
(
state
.
up
)
if
(
state
.
up
)
term_cprintf
(
C_GREEN
,
"
Link
OK "
);
term_cprintf
(
C_GREEN
,
"OK "
);
else
else
term_cprintf
(
C_RED
,
"
No Link
"
);
term_cprintf
(
C_RED
,
"
--
"
);
term_cprintf
(
C_GREY
,
"RTU: "
);
term_cprintf
(
C_GREY
,
"RTU: "
);
if
(
0x1
&
(
tru_info
.
ports_pass_all
>>
i
))
if
(
0x1
&
(
tru_info
.
ports_pass_all
>>
i
))
term_cprintf
(
C_GREEN
,
"
Enable traffic
"
);
term_cprintf
(
C_GREEN
,
"
Forward
"
);
else
else
term_cprintf
(
C_RED
,
"
Disable traffic
"
);
term_cprintf
(
C_RED
,
"
Block
"
);
term_cprintf
(
C_GREY
,
" TRU: "
);
term_cprintf
(
C_GREY
,
" TRU: "
);
...
@@ -187,7 +187,7 @@ int track_onoff = 1;
...
@@ -187,7 +187,7 @@ int track_onoff = 1;
void
show_screen
()
void
show_screen
()
{
{
term_clear
();
term_clear
();
term_pcprintf
(
1
,
1
,
C_BLUE
,
"WR Switch Topology Resolution Unit (TRU) Monitor v 1.
0
[q = quit]"
);
term_pcprintf
(
1
,
1
,
C_BLUE
,
"WR Switch Topology Resolution Unit (TRU) Monitor v 1.
1
[q = quit]"
);
show_ports
();
show_ports
();
}
}
...
...
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