svn commit: r297550 - head/sys/dev/extres/clk

Andrew Turner andrew at FreeBSD.org
Mon Apr 4 10:03:07 UTC 2016


Author: andrew
Date: Mon Apr  4 10:03:06 2016
New Revision: 297550
URL: https://svnweb.freebsd.org/changeset/base/297550

Log:
  Fix a format string when uint64_t is not unsigned long long by casting
  through uintmax_t.

Modified:
  head/sys/dev/extres/clk/clk.c

Modified: head/sys/dev/extres/clk/clk.c
==============================================================================
--- head/sys/dev/extres/clk/clk.c	Mon Apr  4 09:50:28 2016	(r297549)
+++ head/sys/dev/extres/clk/clk.c	Mon Apr  4 10:03:06 2016	(r297550)
@@ -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();
 }


More information about the svn-src-head mailing list