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
84
Issues
84
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
a8ab379f
Commit
a8ab379f
authored
Jun 06, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_mon: bug fixes and improved readability
parent
3b86b40e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
ppsi
userspace/ppsi
+1
-1
wr_mon.c
userspace/tools/wr_mon.c
+6
-3
No files found.
ppsi
@
9b1ae8a3
Subproject commit
5fb66400289a6c525177e144e50830b2c6de0b20
Subproject commit
9b1ae8a387a078755e59b3df6a2b034dc464460c
userspace/tools/wr_mon.c
View file @
a8ab379f
...
...
@@ -222,8 +222,8 @@ static char *prot_detection_state_name[]={
"NONE "
,
/* No meaning. No extension present */
"WA_MSG "
,
/* Waiting first message */
"PD_IPRG"
,
/* Protocol detection */
"
PD_OK
"
,
/* Protocol detected */
"
FAILURE
"
/* Protocol not detected */
"
EXT_ON
"
,
/* Protocol detected */
"
EXT_OFF
"
/* Protocol not detected */
};
/* prototypes */
...
...
@@ -268,6 +268,7 @@ int64_t pp_time_to_picos(struct pp_time *ts)
+
((
ts
->
scaled_nsecs
*
1000
+
0x8000
)
>>
TIME_INTERVAL_FRACBITS
);
}
#if 0
static double alpha_to_double(int32_t alpha) {
double f ;
int neg = alpha<0;
...
...
@@ -276,6 +277,7 @@ static double alpha_to_double(int32_t alpha) {
f= (double)alpha/(double)(1LL<<FIX_ALPHA_FRACBITS);
return neg ? -f : f;
}
#endif
void
help
(
char
*
prgname
)
{
...
...
@@ -597,6 +599,7 @@ void show_ports(int hal_alive, int ppsi_alive)
term_cprintf
(
C_WHITE
,
"%s.%06li"
,
datestr
,
hw
.
tv_usec
);
term_cprintf
(
C_BLUE
,
" Leap seconds: "
);
bzero
(
&
timex_val
,
sizeof
(
timex_val
));
if
(
adjtimex
(
&
timex_val
)
<
0
)
{
term_cprintf
(
C_WHITE
,
"error
\n
"
);
}
else
{
...
...
@@ -626,7 +629,7 @@ void show_ports(int hal_alive, int ppsi_alive)
term_cprintf
(
C_WHITE
,
"%s
\n
"
,
getStateAsString
(
pll_locking_state
,((
wrs_arch_data_t
*
)
ppg_arch
)
->
timingModeLockingState
));
}
term_cprintf
(
C_CYAN
,
"----- HAL ---|---------------------------------- PPSI --------------------------------------------------------
\n
"
);
term_cprintf
(
C_CYAN
,
" Iface| Freq |Inst| Name | Config | MAC of peer port |
PTP/EXT/PLINK states
| Pro | VLANs
\n
"
);
term_cprintf
(
C_CYAN
,
" Iface| Freq |Inst| Name | Config | MAC of peer port |
PTP/EXT/PDETECT States
| Pro | VLANs
\n
"
);
term_cprintf
(
C_CYAN
,
"------+------+----+--------------+------------+-------------------+------------------------------+-----+------
\n
"
);
}
...
...
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