瀏覽代碼

Fix printf format warning error

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
f939ff7cb5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/arch/i386/firmware/pcbios/hidemem.c

+ 3
- 2
src/arch/i386/firmware/pcbios/hidemem.c 查看文件

@@ -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…
取消
儲存