aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLogbin105399 -> 10565 bytes
-rw-r--r--binutils/sysdump.c15
2 files changed, 7 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6bb5d0d..f0e7ae0 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
Binary files differ
diff --git a/binutils/sysdump.c b/binutils/sysdump.c
index aa7b7cd..891ce13 100644
--- a/binutils/sysdump.c
+++ b/binutils/sysdump.c
@@ -84,27 +84,26 @@ dh (ptr, size)
{
int i;
int j;
- int span = 20;
+ int span = 16;
printf ("\n************************************************************\n");
for (i = 0; i < size; i += span)
{
- for (j = 0; j < span && j + i < size; j++)
+ for (j = 0; j < span; j++)
{
- printf ("%02x ", ptr[i + j]);
+ if (j + i < size)
+ printf ("%02x ", ptr[i + j]);
+ else
+ printf (" ");
}
- printf ("\n");
- }
- for (i = 0; i < size; i += span)
- {
for (j = 0; j < span && j + i < size; j++)
{
int c = ptr[i + j];
if (c < 32 || c > 127)
c = '.';
- printf (" %c ", c);
+ printf ("%c", c);
}
printf ("\n");
}