[SeaBIOS] Get rid of a compile time dprintf warning

Dave Frodin dave.frodin at se-eng.com
Wed Jan 9 15:34:18 CET 2013


Here's a patch that's been lingering awhile. 
thanks, 
Dave 

----- Original Message -----

> From: "Dave Frodin" <dave.frodin at se-eng.com>
> To: "seabios" <seabios at seabios.org>
> Sent: Wednesday, October 17, 2012 9:30:01 AM
> Subject: Get rid of a compile time dprintf warning

> This patch gets rid of a compile time dprintf warning.
> A 'long int' was being passed to a '%d'.

> Signed-off-by: Dave Frodin <dave.frodin at se-eng.com>
> ---
> src/post.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

> diff --git a/src/post.c b/src/post.c
> index 924b311..b84d19e 100644
> --- a/src/post.c
> +++ b/src/post.c
> @@ -345,7 +345,7 @@ reloc_init(void)
> panic("No space for init relocation.\n");

> // Copy code and update relocs (init absolute, init relative, and
> runtime)
> - dprintf(1, "Relocating low data from %p to %p (size %d)\n"
> + dprintf(1, "Relocating low data from %p to %p (size %ld)\n"
> , datalow_start, final_datalow_start, datalow_end - datalow_start);
> updateRelocs(code32flat_start, _reloc_datalow_start,
> _reloc_datalow_end
> , final_datalow_start - datalow_start);
> --
> 1.7.9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.seabios.org/pipermail/seabios/attachments/20130109/905717b5/attachment.html>


More information about the SeaBIOS mailing list