From 41a24210cc1b0858d882d259b020cb1d0773b8ff Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 30 Nov 2011 21:21:15 +0000 Subject: [PATCH] Change hexadump to accept all ascii characters git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index c326d05f9..32db8e07d 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -5165,7 +5165,7 @@ sub hexadump { foreach(@$data) { printf("%02x ",$_); $alpha[$c] = sprintf("%c",$_); - if($alpha[$c] !~ /\w/) { + if($_ < 0x20 or $_ > 0x7e) { $alpha[$c] = "."; } $c++;