提交 d9d8c7c6 编写于 作者: W Wolfgang Denk

Fix strmhz(): avoid printing negative fractions

Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 4a7f6b75
......@@ -27,7 +27,7 @@ char *strmhz (char *buf, long hz)
long l, n;
long m;
n = DIV_ROUND(hz, 1000000L);
n = DIV_ROUND(hz, 1000) / 1000L;
l = sprintf (buf, "%ld", n);
hz -= n * 1000000L;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册