[SeaBIOS] Get rid of a compile time dprintf warning

Dave Frodin dave.frodin at se-eng.com
Wed Oct 17 17:30:01 CEST 2012


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/20121017/2df9f46d/attachment.html>


More information about the SeaBIOS mailing list