summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
Diffstat (limited to 'src/import')
-rwxr-xr-xsrc/import/tools/genMemVpd.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/import/tools/genMemVpd.pl b/src/import/tools/genMemVpd.pl
index 3fce7c6e9..e9a8639e9 100755
--- a/src/import/tools/genMemVpd.pl
+++ b/src/import/tools/genMemVpd.pl
@@ -494,10 +494,11 @@ sub processCkeVpdTextFile
my $actionWriteFile=0;
my $line = <VPDINPUTTEXT>;
+ $line =~ s/(\r|\n)//g;
+
$row++;
if ($line) #determine all actions based on text line
{
- chomp($line);
if ($line =~ /ATTR_/) #first since will be the most of these
{
if ($stateProcHeader)
@@ -605,10 +606,11 @@ sub processVpdTextFile
my $actionWriteFile=0;
my $line = <VPDINPUTTEXT>;
+ $line =~ s/(\r|\n)//g;
+
$row++;
if ($line) #determine all actions based on text line
{
- chomp($line);
if ($line =~ /ATTR_/) #first since will be the most of these
{
if ($stateProcHeader)
OpenPOWER on IntegriCloud