[padb-devel] [padb] r293 committed - Don't pass error strings through printf so that value expansion isn't ...
padb at googlecode.com
padb at googlecode.com
Sun Oct 18 11:48:12 BST 2009
Revision: 293
Author: apittman
Date: Sun Oct 18 03:47:57 2009
Log: Don't pass error strings through printf so that value expansion isn't
attempted
on them. This prevents errors when dealing with error string that contain
% characters.
http://code.google.com/p/padb/source/detail?r=293
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Fri Oct 16 03:52:39 2009
+++ /trunk/src/padb Sun Oct 18 03:47:57 2009
@@ -3921,8 +3921,8 @@
if ( defined $d->{target_data}{ERROR} ) {
print "Warning: errors reported by some ranks\n========\n";
foreach my $error ( sort keys %{ $d->{target_data}{ERROR} } ) {
- printf "%s: $error\n",
- rng_convert_to_user( $d->{target_data}{ERROR}{$error} );
+ printf "%s: %s\n",
+ rng_convert_to_user( $d->{target_data}{ERROR}{$error} ),
$error;
}
print "========\n";
}
More information about the padb-devel
mailing list