|  | @@ -22,6 +22,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
 | 
		
	
		
			
			| 22 | 22 |  #include <stdio.h>
 | 
		
	
		
			
			| 23 | 23 |  #include <stdint.h>
 | 
		
	
		
			
			| 24 | 24 |  #include <stdarg.h>
 | 
		
	
		
			
			|  | 25 | +#include <ctype.h>
 | 
		
	
		
			
			| 25 | 26 |  #include <ipxe/console.h>
 | 
		
	
		
			
			| 26 | 27 |  
 | 
		
	
		
			
			| 27 | 28 |  /**
 | 
		
	
	
		
			
			|  | @@ -96,9 +97,7 @@ static void dbg_hex_dump_da_row ( unsigned long dispaddr, const void *data,
 | 
		
	
		
			
			| 96 | 97 |  			continue;
 | 
		
	
		
			
			| 97 | 98 |  		}
 | 
		
	
		
			
			| 98 | 99 |  		byte = bytes[i];
 | 
		
	
		
			
			| 99 |  | -		if ( ( byte < 0x20 ) || ( byte >= 0x7f ) )
 | 
		
	
		
			
			| 100 |  | -			byte = '.';
 | 
		
	
		
			
			| 101 |  | -		dbg_printf ( "%c", byte );
 | 
		
	
		
			
			|  | 100 | +		dbg_printf ( "%c", ( isprint ( byte ) ? byte : '.' ) );
 | 
		
	
		
			
			| 102 | 101 |  	}
 | 
		
	
		
			
			| 103 | 102 |  	dbg_printf ( "\n" );
 | 
		
	
		
			
			| 104 | 103 |  }
 |