[MXS-1218] Use correct conversion specifier when printing 64-bit integers Created: 2017-04-06  Updated: 2017-04-18  Resolved: 2017-04-18

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.0.5
Fix Version/s: 2.0.6

Type: Bug Priority: Major
Reporter: Johan Wikman Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-31

 Description   

When the poll statistics are printed, the printf format specifier "%d" is used, even though the counters are 64-bit.

Instead of

dcb_printf(..., "...%d\n", ...);

the following should be used

dcb_printf(..., "...%" PRId64 "\n", ...);

The use of %d leads to wrong output when MaxScale has been running for a long period.


Generated at Thu Feb 08 04:05:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.