summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-07-04 14:01:57 +0000
committerGreg Sabino Mullane2011-07-04 14:01:57 +0000
commit5f9eac01e750764f072f33ee9f0efb6cc584b5ba (patch)
treebd2d9fba52eb3aa3c1191bf59b30fbf44bdb34a9 /check_postgres.pl
parentbb667affa8b1cec74b05eb3315c9d62b0e23edc7 (diff)
printf fixes.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index d98e98945..6a8863e7b 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -1597,7 +1597,8 @@ sub finishup {
or ($DEBUGOUTPUT =~ /u/io and $type eq 'u');
}
for (sort keys %$info) {
- printf "$_ %s%s ",
+ printf "%s %s%s ",
+ $_,
$showdebug ? "[DEBUG: $DEBUG_INFO] " : '',
join $SEP => map { $_->[0] } @{$info->{$_}};
}
@@ -6410,10 +6411,10 @@ sub write_audit_file {
print {$fh} "## Port: $row->{port}\n";
print {$fh} "## User: $row->{dbuser}\n";
if ($arg->{same_schema}) {
- printf {$fh} "## Start of same_schema information:\n";
+ print {$fh} "## Start of same_schema information:\n";
{
local $Data::Dumper::Indent = 1;
- printf {$fh} Dumper $info;
+ print {$fh} Dumper $info;
}
print {$fh} "## End of same_schema information\n";
}