Replace STRTARGET macro

The macro was extremely unwieldly to update and made the addition of debug
assertions harder. Rewriting it as an inline function makes this possible.
This commit is contained in:
Markus Mäkelä
2019-01-24 16:22:54 +02:00
parent 9f1619f4da
commit 2c95119a3b
2 changed files with 33 additions and 21 deletions

View File

@ -344,8 +344,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
else
{
MXS_ERROR("Could not find valid server for target type %s, closing "
"connection.",
STRTARGET(route_target));
"connection.", route_target_to_string(route_target));
}
}