瀏覽代碼

[pxe] Avoid printf format warning on some compilers

Tested-by: Joshua Oreman <oremanj@xenon.get-linux.org>
tags/v0.9.8
Michael Brown 15 年之前
父節點
當前提交
2b9f7f042c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/arch/i386/interface/pxe/pxe_undi.c

+ 1
- 1
src/arch/i386/interface/pxe/pxe_undi.c 查看文件

@@ -724,7 +724,7 @@ PXENV_EXIT_t pxenv_undi_isr ( struct s_PXENV_UNDI_ISR *undi_isr ) {
724 724
 		DBGC2 ( &pxenv_undi_isr, " RX" );
725 725
 		if ( len > sizeof ( basemem_packet ) ) {
726 726
 			/* Should never happen */
727
-			DBGC2 ( &pxenv_undi_isr, " overlength (%x)", len );
727
+			DBGC2 ( &pxenv_undi_isr, " overlength (%zx)", len );
728 728
 			len = sizeof ( basemem_packet );
729 729
 		}
730 730
 		memcpy ( basemem_packet, iobuf->data, len );

Loading…
取消
儲存