Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
98
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
843d4321
Commit
843d4321
authored
1 year ago
by
Adam Wujek
Browse files
Options
Downloads
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
9b525cab
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/snmpd/wrsTimingStatusGroup.c
+13
-11
13 additions, 11 deletions
userspace/snmpd/wrsTimingStatusGroup.c
with
13 additions
and
11 deletions
userspace/snmpd/wrsTimingStatusGroup.c
+
13
−
11
View file @
843d4321
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment