In log_on_large_pages_failure (a file-scoped function in memoryReserver.cpp) there is a use of jio_snprintf that prints a pointer. It uses PTR_FORMAT, which is correct. But it uses the pointer directly as the argument, rather than using the `p2i` helper function. It happens to accidentally work, but is warned about if gcc's printf checking is enabled for that call.
- blocks
-
JDK-8198918 jio_snprintf and friends are not checked by -Wformat
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/1703915d
-
Review(master) openjdk/jdk/26050