From: Simon Kagstrom Date: Tue, 7 Jul 2009 15:59:27 +0200 Subject: [U-Boot] [PATCH 5/8]: Use do_div from div64.h for vsprintf In-Reply-To: <20090707155510.58ae70bb@marrow.netinsight.se> References: <20090707155510.58ae70bb@marrow.netinsight.se> Message-ID: <20090707155927.78e75333@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Simon Kagstrom --- lib_generic/vsprintf.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/lib_generic/vsprintf.c b/lib_generic/vsprintf.c index 7f534c7..e84cfb0 100644 --- a/lib_generic/vsprintf.c +++ b/lib_generic/vsprintf.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #if !defined (CONFIG_PANIC_HANG) @@ -28,12 +29,6 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); #endif #define noinline __attribute__((noinline)) -#define do_div(n, base) ({ \ - unsigned int __res; \ - __res = ((unsigned NUM_TYPE) n) % base; \ - n = ((unsigned NUM_TYPE) n) / base; \ - __res; \ -}) const char hex_asc[] = "0123456789abcdef"; #define hex_asc_lo(x) hex_asc[((x) & 0x0f)] -- 1.6.0.4