VMError::error_string has incorrect format usage

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • b04

      In VMError::error_string 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 warning about if gcc's printf checking is enabled for that call.

            Assignee:
            Kim Barrett
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: