mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix a format string when uint64_t is not unsigned long long by casting
through uintmax_t.
This commit is contained in:
parent
fa64321bba
commit
670e854e4a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297550
@ -487,10 +487,10 @@ clkdom_dump(struct clkdom * clkdom)
|
||||
CLK_TOPO_SLOCK();
|
||||
TAILQ_FOREACH(clknode, &clkdom->clknode_list, clkdom_link) {
|
||||
rv = clknode_get_freq(clknode, &freq);
|
||||
printf("Clock: %s, parent: %s(%d), freq: %llu\n", clknode->name,
|
||||
printf("Clock: %s, parent: %s(%d), freq: %ju\n", clknode->name,
|
||||
clknode->parent == NULL ? "(NULL)" : clknode->parent->name,
|
||||
clknode->parent_idx,
|
||||
((rv == 0) ? freq: rv));
|
||||
(uintmax_t)((rv == 0) ? freq: rv));
|
||||
}
|
||||
CLK_TOPO_UNLOCK();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user