Skip to content

Commit 7b06e94

Browse files
committed
Correct sprintf usage for trace_msg
1 parent cbacc96 commit 7b06e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DBI.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ sub _new_sth { # called by DBD::<drivername>::db::prepare)
14861486
join "!\001", $dsn, $user, $auth, DBI::_concat_hash_sorted($attr, "=\001", ",\001", 0, 0)
14871487
};
14881488
my $dbh = $cache->{$key};
1489-
$drh->trace_msg(sprintf(" connect_cached: key '$key', cached dbh $dbh\n", DBI::neat($key), DBI::neat($dbh)))
1489+
$drh->trace_msg(sprintf(" connect_cached: key '%s', cached dbh %s\n", DBI::neat($key), DBI::neat($dbh)))
14901490
if (($DBI::dbi_debug & 0xF) >= 4);
14911491

14921492
my $cb = $attr->{Callbacks}; # take care not to autovivify

0 commit comments

Comments
 (0)