|
@@ -25,10 +25,10 @@ void hex_dump ( const char *data, const unsigned int len ) {
|
25
|
25
|
more();
|
26
|
26
|
}
|
27
|
27
|
if ( ( index % 16 ) == 0 ) {
|
28
|
|
- printf ( "%X [%X] : %hX :", data + index,
|
|
28
|
+ printf ( "%p [%lX] : %X :", data + index,
|
29
|
29
|
virt_to_phys ( data + index ), index );
|
30
|
30
|
}
|
31
|
|
- printf ( " %hhX", data[index] );
|
|
31
|
+ printf ( " %02X", data[index] );
|
32
|
32
|
}
|
33
|
33
|
printf ( "\n" );
|
34
|
34
|
}
|
|
@@ -64,19 +64,19 @@ int check_region ( void *region, size_t len ) {
|
64
|
64
|
/* Start of corruption */
|
65
|
65
|
if ( corrupted == 0 ) {
|
66
|
66
|
corrupted = 1;
|
67
|
|
- printf ( "Region %#x-%#x (physical %#x-%#x) "
|
|
67
|
+ printf ( "Region %p-%p (physical %#lx-%#lx) "
|
68
|
68
|
"corrupted\n",
|
69
|
69
|
region, region + len,
|
70
|
70
|
virt_to_phys ( region ),
|
71
|
71
|
virt_to_phys ( region + len ) );
|
72
|
72
|
}
|
73
|
73
|
in_corruption = 1;
|
74
|
|
- printf ( "--- offset %#x ", offset );
|
|
74
|
+ printf ( "--- offset %#lx ", offset );
|
75
|
75
|
} else if ( ( in_corruption != 0 ) &&
|
76
|
76
|
( test == GUARD_SYMBOL ) ) {
|
77
|
77
|
/* End of corruption */
|
78
|
78
|
in_corruption = 0;
|
79
|
|
- printf ( "to offset %#x", offset );
|
|
79
|
+ printf ( "to offset %#lx", offset );
|
80
|
80
|
}
|
81
|
81
|
|
82
|
82
|
}
|