From: Andreas Neiser Date: Tue, 20 May 2014 15:27:11 +0000 (+0200) Subject: Fix pretty obvious typo...? X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=284e9537d5d6aa58d0b85cce2a99767341116250;p=daqtools.git Fix pretty obvious typo...? --- diff --git a/xml-db/get.pl b/xml-db/get.pl index 4a5c814..5c3a95d 100755 --- a/xml-db/get.pl +++ b/xml-db/get.pl @@ -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} }