Fix a format string when uint64_t is not unsigned long long by casting

through uintmax_t.
This commit is contained in:
Andrew Turner 2016-04-04 10:03:06 +00:00
parent fa64321bba
commit 670e854e4a

View File

@ -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();
}