Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165107610
D44267.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
891 B
Referenced Files
None
Subscribers
None
D44267.diff
View Options
diff --git a/sys/dev/clk/clk.c b/sys/dev/clk/clk.c
--- a/sys/dev/clk/clk.c
+++ b/sys/dev/clk/clk.c
@@ -512,10 +512,20 @@
CLK_TOPO_SLOCK();
TAILQ_FOREACH(clknode, &clkdom->clknode_list, clkdom_link) {
rv = clknode_get_freq(clknode, &freq);
- printf("Clock: %s, parent: %s(%d), freq: %ju\n", clknode->name,
- clknode->parent == NULL ? "(NULL)" : clknode->parent->name,
- clknode->parent_idx,
- (uintmax_t)((rv == 0) ? freq: rv));
+ if (rv != 0) {
+ printf("Clock: %s, error getting frequency: %d\n",
+ clknode->name, rv);
+ continue;
+ }
+
+ if (clknode->parent != NULL) {
+ printf("Clock: %s, parent: %s(%d), freq: %ju\n",
+ clknode->name, clknode->parent->name,
+ clknode->parent_idx, (uintmax_t)freq);
+ } else {
+ printf("Clock: %s, parent: none, freq: %ju\n",
+ clknode->name, (uintmax_t)freq);
+ }
}
CLK_TOPO_UNLOCK();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 2:50 AM (24 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36143880
Default Alt Text
D44267.diff (891 B)
Attached To
Mode
D44267: clkdom_dump(): improve output text
Attached
Detach File
Event Timeline
Log In to Comment