mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Tag the logger
service with ATTRIBUTE_FORMAT
[Breaking] The `logger` service passes formats and args directly to `my_vsnprintf`. Just like the `my_snprintf` service, I increased this service’s major version because: * Custom suffixes are now a thing (and custom specifiers will soon no longer be). * GCC `-Wformat` now checks formats sent to them.
This commit is contained in:
committed by
Sergei Golubchik
parent
2392bd02d8
commit
302caa9549
@@ -118,7 +118,7 @@ static void log_sql_errors(MYSQL_THD thd __attribute__((unused)),
|
||||
if (event->database.str)
|
||||
{
|
||||
logger_printf(logfile, "%04d-%02d-%02d %2d:%02d:%02d %lu "
|
||||
"%s %`s %s %d: %s : %s \n",
|
||||
"%s %sQ %s %d: %s : %s \n",
|
||||
t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min,
|
||||
t.tm_sec, event->general_thread_id, event->general_user,
|
||||
event->database.str, type,
|
||||
|
Reference in New Issue
Block a user