Sfoglia il codice sorgente

Fix printf format warning error

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
f939ff7cb5
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      src/arch/i386/firmware/pcbios/hidemem.c

+ 3
- 2
src/arch/i386/firmware/pcbios/hidemem.c Vedi File

@@ -73,8 +73,9 @@ void hide_etherboot ( void ) {
73 73
 	hidden_regions[TEXT].start = virt_to_phys ( _text );
74 74
 	hidden_regions[TEXT].end = virt_to_phys ( _end );
75 75
 
76
-	DBG ( "Hiding [%x,%x)\n", hidden_regions[TEXT].start,
77
-	      hidden_regions[TEXT].end );
76
+	DBG ( "Hiding [%lx,%lx)\n",
77
+	      ( unsigned long ) hidden_regions[TEXT].start,
78
+	      ( unsigned long ) hidden_regions[TEXT].end );
78 79
 
79 80
 	hook_bios_interrupt ( 0x15, ( unsigned int ) int15,
80 81
 			      &int15_vector );

Loading…
Annulla
Salva