aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/core/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/core/debug.c')
-rw-r--r--gpxe/src/core/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpxe/src/core/debug.c b/gpxe/src/core/debug.c
index 500a7ac0..8f929309 100644
--- a/gpxe/src/core/debug.c
+++ b/gpxe/src/core/debug.c
@@ -36,7 +36,8 @@ static void dbg_hex_dump_da_row ( unsigned long dispaddr, const void *data,
printf ( " " );
continue;
}
- printf ( " %02x", bytes[i] );
+ printf ( "%c%02x",
+ ( ( ( i % 16 ) == 8 ) ? '-' : ' ' ), bytes[i] );
}
printf ( " : " );
for ( i = offset ; i < ( offset + 16 ) ; i++ ) {