OSSP CVS Repository

ossp - Difference in ossp-pkg/snmpdx/snmpdx.pl versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/snmpdx/snmpdx.pl 1.4 -> 1.5

--- snmpdx.pl    2003/09/09 14:08:29     1.4
+++ snmpdx.pl    2003/09/10 13:30:47     1.5
@@ -84,7 +84,7 @@
     my $fmt   = shift @_ || die "missing format argument";
     if ($self->{-level} >= $level) {
         my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time());
-        my $id = sprintf("[%04d-%02d-%02d/%02d:%02d:%02d@%05d] ", 
+        my $id = sprintf("[%04d-%02d-%02d/%02d:%02d:%02d@%05d] ",
                          $year+1900, $mon+1, $mday, $hour, $min, $sec, $$);
         $self->{-io}->printf($id . $fmt . "\n", @_);
     }
@@ -204,11 +204,11 @@
     }
     else {
         $self->{-log}->printf(3, "system: run: \"$cmd\" ($expires) [CACHE MISS]");
-        $self->{-log}->printf(5, "system: executing command: \"$cmd\""); 
+        $self->{-log}->printf(5, "system: executing command: \"$cmd\"");
         $result = { -stdout => '', -rv => 0 };
         $result->{-stdout} = `$cmd 2>/dev/null`;
         $result->{-rv} = ($? >> 8);
-        $self->{-log}->printf(6, "system: return value: ". $result->{-rv}); 
+        $self->{-log}->printf(6, "system: return value: ". $result->{-rv});
         $self->{-cache}->store($cmd, $expires, $result);
     }
     return $result;
@@ -487,7 +487,7 @@
     'bindir'    => "/cw/bin",
     'probedir'  => "@libexecdir@/snmpdx",
     'probename' => "*",
-    'mibdir'    => "@datadir@/snmpdx/mibs",
+    'mibdir'    => "@datadir@/snmpdx/mibs", # FIXME
     'mibname'   => "snmpdx",
     'logfile'   => "@localstatedir@/snmpdx.log",
     'loglevel'  => 9,
@@ -549,7 +549,7 @@
         my ($option, $value) = ($line =~ m|^\s*(\S+)\s+(.+?)\s*$|s);
         die "invalid configuration line \"$line\""
             if (not defined($option) or not defined($value));
-        my ($var) = map  { $options{$_} } 
+        my ($var) = map  { $options{$_} }
                     grep { $_ =~ m/^.\|\Q$option\E(=[si])?$/s }
                     keys(%options);
         die "invalid configuration option \"$option\""
@@ -575,7 +575,7 @@
     $prg->{'name'}, $prg->{'version'}, $prg->{'date'},
     $ctx->{-platform}->id());
 
-#   exception handling support 
+#   exception handling support
 $SIG{__DIE__} = sub {
     my ($err) = @_;
     $err =~ s|\r?\n$||s;

CVSTrac 2.0.1