瀏覽代碼

Tidy up hex_dump() output.

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
35b0233baa
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/core/debug.c

+ 2
- 2
src/core/debug.c 查看文件

@@ -25,10 +25,10 @@ void hex_dump ( const unsigned char *data, const unsigned int len ) {
25 25
 			more();
26 26
 		}
27 27
 		if ( ( index % 16 ) == 0 ) {
28
-			printf ( "%p [%lX] : %X :", data + index,
28
+			printf ( "%p [%lx] : %04x :", data + index,
29 29
 				 virt_to_phys ( data + index ), index );
30 30
 		}
31
-		printf ( " %02X", data[index] );
31
+		printf ( " %02x", data[index] );
32 32
 	}
33 33
 	printf ( "\n" );
34 34
 }

Loading…
取消
儲存