Format output in DEBUG_ExamineMemory for "d" and "x" not to exceed 80

chars.
This commit is contained in:
Uwe Bonnes 1999-05-08 10:45:49 +00:00 committed by Alexandre Julliard
parent 013d08805a
commit cdd3a52899

View file

@ -267,7 +267,7 @@ void DEBUG_ExamineMemory( const DBG_ADDR *address, int count, char format )
if (!DBG_CHECK_READ_PTR( &addr, sizeof(int) )) return;
fprintf(stderr," %8.8x", *dump++);
addr.off += sizeof(int);
if ((i % 8) == 7)
if ((i % 4) == 3)
{
fprintf(stderr,"\n");
DEBUG_PrintAddress( &addr, dbg_mode, FALSE );
@ -282,9 +282,9 @@ void DEBUG_ExamineMemory( const DBG_ADDR *address, int count, char format )
for(i=0; i<count; i++)
{
if (!DBG_CHECK_READ_PTR( &addr, sizeof(int) )) return;
fprintf(stderr," %d", *dump++);
fprintf(stderr," %10d", *dump++);
addr.off += sizeof(int);
if ((i % 8) == 7)
if ((i % 4) == 3)
{
fprintf(stderr,"\n");
DEBUG_PrintAddress( &addr, dbg_mode, FALSE );