Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8227630

adjust format specifiers in loadlib_aix.cpp

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      ppc
    • OS:
      aix

      Backports

        Description

        Currently we use %llu printf-format specifiers at 2 places in loadlib_aix.cpp where we output size_t variables .
        This leads to warnings with xlc16/xlclang :

        /nightly/jdk/src/hotspot/os/aix/loadlib_aix.cpp:210:48: warning: format specifies type 'unsigned long long' but the argument
        has type 'size_t' (aka 'unsigned long') [-Wformat]
          trcVerbose("loadquery buffer size is %llu.", buflen);
                                               ~~~~ ^~~~~~
                                               %zu

        We should use correct format specifiers (or add a cast).

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mbaesken Matthias Baesken
                Reporter:
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: