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
332517a8
Commit
332517a8
authored
Apr 13, 2023
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG:
#215
] userspace/snmpd: on spll_DelCnt waring print a delta and a current value
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
69b5436d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
wrsTimingStatusGroup.c
userspace/snmpd/wrsTimingStatusGroup.c
+13
-11
No files found.
userspace/snmpd/wrsTimingStatusGroup.c
View file @
332517a8
...
...
@@ -299,25 +299,27 @@ static void get_wrsSoftPLLStatus(void)
if
(
s
->
wrsSpllMode
==
WRS_SPLL_MODE_GRAND_MASTER
&&
s
->
wrsSpllDelCnt
!=
spll_DelCnt_prev
)
{
t
->
wrsSoftPLLStatus
=
WRS_SOFTPLL_STATUS_WARNING
;
snmp_log
(
LOG_WARNING
,
"SNMP: "
SL_W
" %s: "
"SoftPLL in GrandMaster mode has unlocked from "
"the external reference. Delock counter is %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
);
"SoftPLL in GrandMaster mode has unlocked from "
"the external reference. "
"Delock counter is %d, increased by %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
,
s
->
wrsSpllDelCnt
-
spll_DelCnt_prev
);
}
if
(
s
->
wrsSpllMode
==
WRS_SPLL_MODE_MASTER
&&
s
->
wrsSpllDelCnt
!=
spll_DelCnt_prev
)
{
t
->
wrsSoftPLLStatus
=
WRS_SOFTPLL_STATUS_WARNING
;
snmp_log
(
LOG_WARNING
,
"SNMP: "
SL_W
" %s: "
"SoftPLL in Master mode has unlocked. Delock
"
"counter insc
eased by %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
-
spll_DelCnt_prev
);
"SoftPLL in Master mode has unlocked.
"
"Delock counter is %d, incr
eased by %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
,
s
->
wrsSpllDelCnt
-
spll_DelCnt_prev
);
}
if
(
s
->
wrsSpllMode
==
WRS_SPLL_MODE_SLAVE
&&
s
->
wrsSpllDelCnt
!=
spll_DelCnt_prev
)
{
t
->
wrsSoftPLLStatus
=
WRS_SOFTPLL_STATUS_WARNING
;
snmp_log
(
LOG_WARNING
,
"SNMP: "
SL_W
" %s: "
"SoftPLL in Slave mode has unlocked. Delock
"
"counter insc
eased by %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
-
spll_DelCnt_prev
);
"SoftPLL in Slave mode has unlocked.
"
"Delock counter is %d, incr
eased by %d
\n
"
,
slog_obj_name
,
s
->
wrsSpllDelCnt
,
s
->
wrsSpllDelCnt
-
spll_DelCnt_prev
);
}
}
/* check if any of fields equal to 0 or WARNING_NA */
...
...
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