]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Fix pretty obvious typo...?
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Tue, 20 May 2014 15:27:11 +0000 (17:27 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 21 May 2014 13:30:09 +0000 (15:30 +0200)
xml-db/get.pl

index 4a5c81444d20e9a3ff006b142337627056f4ae42..5c3a95d8b55cf6262635b127a6a96c160e342a6e 100755 (executable)
@@ -268,7 +268,7 @@ sub FormatPretty {
       when ("bitmask")  {$ret = sprintf("%0".$obj->{bits}."b",$value);}
       when ("time")     {require Date::Format; $ret = Date::Format::time2str('%Y-%m-%d %H:%M',$value);}
       when ("hex")      {$ret = sprintf("0x%0".int(($obj->{bits}+3)/4)."x",$value);}
-      when ("e1num")     { my $t = sprintf("%x",$value);
+      when ("enum")     { my $t = sprintf("%x",$value);
                           if (exists $obj->{enumItems}->{$t}) {
                             $ret = $obj->{enumItems}->{$t} 
                             }