mirror of
https://github.com/MariaDB/server.git
synced 2026-05-01 20:55:32 +02:00
MDEV-34799: "Could not write packet" err message args off by 1
MDEV-33582 (3541bd63f0) changed the "Could not write packet"
error message in net_serv.cc to use the function
sql_print_warning(), instead of my_printf_error(). The flags
argument was not removed in this change though, so the old
flags were printed in place of the file descriptor, and all
other args are presenting for the wrong field (and length is
never showed).
This patch removes flags as a parameter to sql_print_warning().
This commit is contained in:
parent
fc5772ce17
commit
3e5e97b26f
1 changed files with 0 additions and 1 deletions
|
|
@ -780,7 +780,6 @@ net_real_write(NET *net,const uchar *packet, size_t len)
|
|||
{
|
||||
sql_print_warning("Could not write packet: fd: %lld state: %d "
|
||||
"errno: %d vio_errno: %d length: %ld",
|
||||
MYF(ME_ERROR_LOG | ME_WARNING),
|
||||
(longlong) vio_fd(net->vio), (int) net->vio->state,
|
||||
vio_errno(net->vio), net->last_errno,
|
||||
(ulong) (end-pos));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue