Use do_div from div64.h for vsprintf
authorDirk Behme <dirk.behme@googlemail.com>
Wed, 22 Jul 2009 15:51:56 +0000 (17:51 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 26 Jul 2009 22:10:12 +0000 (00:10 +0200)
commit479105065d965121f57b55dcfe83a940cba46ac1
tree32faf6a65c3f91fa44d149d3651fb28357ed5941
parent48287792384a93d77d43aaaa1c06cac275bbe1bb
Use do_div from div64.h for vsprintf

Use do_div from div64.h for vsprintf in case of 64bit division.
For 32bit division, do_div from div64.h can't be used as it
needs a 64bit parameter.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
Acked-by: Stefan Roese <sr@denx.de>
CC: Simon Kagstrom <simon.kagstrom@netinsight.net>
lib_generic/vsprintf.c